This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.
Generate nodes in strongly connected components of graph.
Recursive version of algorithm.
G : NetworkX Graph
An directed graph.
comp : generator of lists
A list of nodes for each component of G. The list is ordered from largest connected component to smallest.
NetworkXNotImplemented : If G is undirected
Uses Tarjan’s algorithm with Nuutila’s modifications.
[R210] Depth-first search and linear graph algorithms, R. Tarjan SIAM Journal of Computing 1(2):146-160, (1972). [R211] On finding the strongly connected components in a directed graph. E. Nuutila and E. Soisalon-Soinen Information Processing Letters 49(1): 9-14, (1994)..