Skip to content

Commit c580580

Browse files
committed
PR #35903: fix doctests
1 parent 5eee8c4 commit c580580

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sage/graphs/generic_graph.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5124,7 +5124,7 @@ def cycle_basis(self, output='vertex'):
51245124
sage: G.cycle_basis() # optional - networkx
51255125
[[0, 2], [2, 1, 0]]
51265126
sage: G.cycle_basis(output='edge') # optional - networkx
5127-
[[(0, 2, 'a'), (2, 0, 'b')], [(2, 1, 'd'), (1, 0, 'c'), (0, 2, 'a')]]
5127+
[[(0, 2, 'b'), (2, 0, 'a')], [(2, 1, 'd'), (1, 0, 'c'), (0, 2, 'a')]]
51285128
sage: H = Graph([(1, 2), (2, 3), (2, 3), (3, 4), (1, 4),
51295129
....: (1, 4), (4, 5), (5, 6), (4, 6), (6, 7)], multiedges=True)
51305130
sage: H.cycle_basis() # optional - networkx
@@ -5166,10 +5166,9 @@ def cycle_basis(self, output='vertex'):
51665166
sage: G.cycle_basis() # optional - networkx
51675167
[[2, 3], [4, 3, 2, 1], [4, 3, 2, 1]]
51685168
sage: G.cycle_basis(output='edge') # optional - networkx
5169-
[[(2, 3, 'b'), (3, 2, 'c')],
5169+
[[(2, 3, 'c'), (3, 2, 'b')],
51705170
[(4, 3, 'd'), (3, 2, 'b'), (2, 1, 'a'), (1, 4, 'f')],
51715171
[(4, 3, 'e'), (3, 2, 'b'), (2, 1, 'a'), (1, 4, 'f')]]
5172-
51735172
"""
51745173
if output not in ['vertex', 'edge']:
51755174
raise ValueError('output must be either vertex or edge')

0 commit comments

Comments
 (0)