MinimumChangePermutations

MinimumChangePermutations[l]
constructs all permutations of list l such that adjacent permutations differ by only one transposition.

DetailsDetails