getVertices() implemented