for graph, after initialization, only addEdge and rmEdge ops