addVertex method

dynamic addVertex(
  1. dynamic vdata
)

Add a vertex to the graph.

添加一个点到图中

Implementation

addVertex(vdata) {
  Vertex v = convertor.addVertex(vdata, graph);
  _addVertex(v);
}