Update graph.hpp