update the graph