remove subclasses of VertexIndices and use callback instead