Warning

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

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.