NetworkX

Previous topic

condensation

Next topic

number_weakly_connected_components

is_weakly_connected

is_weakly_connected(G)[source]

Test directed graph for weak connectivity.

Parameters :

G : NetworkX Graph

A directed graph.

Returns :

connected : bool

True if the graph is weakly connected, False otherwise.

See also

strongly_connected_components

Notes

For directed graphs only.