changed the graph, no node repeats