Add implement of graph.