update graph.