Skip to content

Commit e0dc49d

Browse files
Saatvik RaoSaatvik Rao
authored andcommitted
fixed doctest on multigraph
1 parent bfd6e35 commit e0dc49d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/graphs/generic_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15815,7 +15815,7 @@ def power(self, k):
1581515815

1581615816
Testing on graph with multiple edges::
1581715817

15818-
sage: G = DiGraph([(0, 1), (0, 1), (1, 2), (2, 3), (3, 0), (2, 4), (4, 5)])
15818+
sage: G = DiGraph([(0, 1), (0, 1), (1, 2), (2, 3), (3, 0), (2, 4), (4, 5)], multiedges=True)
1581915819
sage: PG = G.power(3)
1582015820
sage: PG.edges(sort=True, labels=False)
1582115821
[(0, 1), (0, 2), (0, 3), (0, 4), (1, 0), (1, 2), (1, 3), (1, 4), (1, 5), (2, 0), (2, 1), (2, 3), (2, 4), (2, 5), (3, 0), (3, 1), (3, 2), (4, 5)]

0 commit comments

Comments
 (0)