Update graph.