Added GraphNodeIsConnected with DFS