documenting the graph creation