Warning

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

networkx.algorithms.components.weakly_connected_component_subgraphs

weakly_connected_component_subgraphs(G, copy=True)[source]

DEPRECATED: Use (G.subgraph(c) for c in weakly_connected_components(G))

Or (G.subgraph(c).copy() for c in weakly_connected_components(G))