added removeNode and removeEdge