addVertexIndex method

  1. @internal
void addVertexIndex(
  1. Graph<V, E> graph,
  2. int index
)

Implementation

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