adding a graph