Replace union of terminal and nonterminal edges in RSM with corresponding iterator
Replace union of terminal and nonterminal edges in RSM with corresponding iterator