retworkx.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 it a weakly connected component of the graph Return type list