Corrected edge pruning error.