Ask Your Question

Revision history [back]

If you have Sage v10.7 or later, you can simply use G.all_simple_cycles(algorithm='B') to get a list of all simple cycles or G.all_cycles_iterator(simple=True, algorithm='B') for an iterator.

As of Sage v10.8, G.all_simple_cycles() uses algorithm B by default.