aryagraph.algorithms.connectivity.connected_components#
- aryagraph.algorithms.connectivity.connected_components(g: Graph) list[set[Hashable]][source]#
Connected components of an undirected graph, largest first.
Raises
GraphTypeErrorfor directed graphs; usestrongly_connected_components()orweakly_connected_components().