test_graph compiles but segfaults