update graph.h