add writing to graph