LCM: Update addVertex and removeVertex in Subgraph class.
LCM: Update addEdge and removeEdge in Subgraph class.