Note

This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.

rustworkx.weakly_connected_components#

weakly_connected_components(graph, /)#

Find the weakly connected components in a directed graph

Parameters:

graph (PyDiGraph) – The graph to find the weakly connected components in

Returns:

A list of sets where each set is a weakly connected component of the graph

Return type:

list