Add getVertices to Graph class