Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

strongly_connected_component_subgraphs

strongly_connected_component_subgraphs(G, copy=True)[source]

Generate strongly connected components as subgraphs.

Parameters :

G : NetworkX Graph

A graph.

Returns :

comp : generator of lists

A list of graphs, one for each strongly connected component of G.

copy : boolean

if copy is True, Graph, node, and edge attributes are copied to the subgraphs.

See also

connected_component_subgraphs