| 1 | initial version |
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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.