Update implement of graph.