wrote helper function for edge destruction. created specialed nodes for each task