PruneArcs remove arcs if weight not valid