wrote test_graph_functions