adding a rule-based edge pruner