weakly_connected_components#
- weakly_connected_components(graph, iter_count=None)#
Weakly connected components – partitions the graph into node sets which are mutually reachable by an undirected path
This function assigns a component id to each node such that nodes with the same component id are mutually reachable by an undirected path.
- Parameters:
- Returns:
Mapping of nodes to their component ids.
- Return type: