dot-rxPrune function

Internal Pruning function