Fixed build error in graph.cpp