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.is_weakly_connected#

is_weakly_connected(graph, /)#

Check if the graph is weakly connected

Parameters:

graph (PyDiGraph) – The graph to check if it is weakly connected

Returns:

Whether the graph is weakly connected or not

Return type:

bool

Raises:

NullGraph – If an empty graph is passed in