NetworkX

Previous topic

weakly_connected_components

Next topic

is_attracting_component

weakly_connected_component_subgraphs

weakly_connected_component_subgraphs(G)[source]

Return weakly connected components as subgraphs.

Graph, node, and edge attributes are copied to the subgraphs.