added deleteEdge