Pass the graph reference around