use multi-write for addVertex() and addVertices()