Return nodes in strongly connected components of graph.
Parameters : | G : NetworkX Graph
|
---|---|
Returns : | comp : list of lists
|
Raises : | NetworkXError: If G is undirected. : |
See also
connected_components, weakly_connected_components
Notes
Uses Tarjan’s algorithm with Nuutila’s modifications. Nonrecursive version of algorithm.
References
[R193] | Depth-first search and linear graph algorithms, R. Tarjan SIAM Journal of Computing 1(2):146-160, (1972). |
[R194] | On finding the strongly connected components in a directed graph. E. Nuutila and E. Soisalon-Soinen Information Processing Letters 49(1): 9-14, (1994).. |