For a huge graph I need an efficient implementation for Python to find all the cycles/circuits in the graph. Currently I am using the package networkx function cycle_basis, which "returns a list of cycles which form a basis for cycles of G. A basis for cycles of a network is a minimal collection of cycles such that any cycle in the network can be written as a sum of cycles in the basis. Here summation of cycles is defined as “exclusive or” of the edges. Cycle bases are useful, e.g. when deriving equations for electric circuits using Kirchhoff’s Laws."
What is an efficient, preferably pre-implemented, way of finding all the cycles in my graph? Maybe I can build on top an implementation on top of the basis (intersecting the cycles).