iredges: introduce new reroute_edges_except