Skip to content

Commit ee16014

Browse files
committed
fix using vertex_to_int
1 parent 25ce040 commit ee16014

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/graphs/cycle_enumeration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ def _all_cycles_iterator_vertex(self, vertex, starting_vertices=None, simple=Fal
220220
report = False
221221
L = len(path)
222222
for i in range(1, L // 2):
223-
if path[i] > path[L - i - 1]:
223+
if vertex_to_int[path[i]] > vertex_to_int[path[L - i - 1]]:
224224
report = False
225225
break
226-
if path[i] < path[L - i - 1]:
226+
if vertex_to_int[path[i]] < vertex_to_int[path[L - i - 1]]:
227227
break
228228
if report:
229229
if report_weight:

0 commit comments

Comments
 (0)