This documents the development version of NetworkX. Documentation for the current release can be found here.
Test directed graph for weak connectivity.
A directed graph is weakly connected if and only if the graph is connected when the direction of the edge between nodes is ignored.
Note that if a graph is strongly connected (i.e. the graph is connected even when we account for directionality), it is by definition weakly connected as well.
- GNetworkX Graph
A directed graph.
True if the graph is weakly connected, False otherwise.
If G is undirected.
For directed graphs only.