passed all the tests for graph_maps