b = isConnected H
This function checks if the given (hyper)graph H is connected. A (hyper)graph is said to be connected if it has exactly one connected component.
Isolated vertices do not count as connected components and will not make this method return false. This is in contrast to isConnectedGraph in which isolated vertices form their own connected components. See the Connected Components Tutorial for more information.





In the following example, the graph G has the isolated vertex d. As d is not considered to be in any connected component, this graph is connected.




The object isConnected is a method function.