add the graph