weakly_connected_component_subgraphs

weakly_connected_component_subgraphs(G, copy=True)[source]

Generate weakly connected components as subgraphs.

Parameters :

G : NetworkX Graph

A directed graph.

copy : bool

If copy is True, graph, node, and edge attributes are copied to the subgraphs.