removed all edges from subtree