Use reference to numVertices