Skip to content

Commit da670d0

Browse files
committed
Fix a bug in the edgeSet method that results in the method returning
an invalid edge set for a graph with a single edge.
1 parent 2abaee7 commit da670d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

macros/math/SimpleGraph.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ sub edgeSet {
543543
}
544544
}
545545

546-
my $edgeSet = GraphTheory::SimpleGraph::Value::EdgeSet->new($context, @edgeSet);
546+
my $edgeSet = GraphTheory::SimpleGraph::Value::EdgeSet->new($context, \@edgeSet);
547547
$edgeSet->{open} = '{';
548548
$edgeSet->{close} = '}';
549549
return $edgeSet;

0 commit comments

Comments
 (0)