b = isConnectedGraph G
This function checks if the given graph G is connected. A graph is said to be connected if it has exactly one connected component.
Isolated vertices form their own connected components and will cause this method return false. This is in contrast to isConnected in which isolated vertices are not in any connected components. See the Connected Components Tutorial for more information.
|
|
|
|
|
In the following example, the graph G has the isolated vertex e. As d forms its own connected component, this graph is not connected.
|
|
|
|
The object isConnectedGraph is a method function.