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))