Skip to content

Commit d45b52e

Browse files
committed
remove unnecessary comment
1 parent f09c6e7 commit d45b52e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/sage/graphs/cycle_enumeration.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -555,19 +555,6 @@ def all_cycles_iterator(self, starting_vertices=None, simple=False,
555555
if algorithm == 'B' and not simple:
556556
raise ValueError("The algorithm 'B' is available only when simple=True.")
557557

558-
# if self.is_directed():
559-
# # Since a cycle is always included in a given strongly connected
560-
# # component, we may remove edges from the graph
561-
# sccs = self.strongly_connected_components()
562-
# d = {}
563-
# for id, component in enumerate(sccs):
564-
# for v in component:
565-
# d[v] = id
566-
# h = copy(self)
567-
# h.delete_edges((u, v) for u, v in h.edge_iterator(labels=False) if d[u] != d[v])
568-
# else:
569-
# h = copy(self)
570-
571558
by_weight, weight_function = self._get_weight_function(by_weight=by_weight,
572559
weight_function=weight_function,
573560
check_weight=check_weight)

0 commit comments

Comments
 (0)