Skip to main content

Module connectivity

Module connectivity 

Source
Expand description

Connected components (undirected / weak) and strongly connected components.

Functionsยง

connected_components
Connected components of an undirected graph (treats edges as undirected).
strongly_connected_components
Strongly connected components via iterative Tarjan, respecting edge direction. Each component is sorted; components are ordered by smallest member. (For undirected graphs this coincides with connected components.)
weakly_connected_components
Weakly connected components of a directed graph (ignores edge direction).