Adding getter for graph.