add insertEdges and insertVertices