disallow loops, Not throwing exception for missing node in graph.adjacentNode