No duplicate nodes in graph.