@internal void addVertexIndex(Graph<V, E> graph, int index) => addVertex( graph, vertexProvider?.call(index) ?? (index as V), );