Update graph_manager.cpp