Prune arcs after filtering. Fixes #50.