First time here? Check out the FAQ!
answered 2025-01-12 11:29:48 +0200
The following is an alternative solution (using networkx).
import networkx as nx G=graphs.PetersenGraph() NG = G.networkx_graph() sorted(nx.simple_cycles(NG))