Finished removeEdge method