Added connectivity tests to graph