Add method getGraph() to allow graph navigation