add a graph