Combinatorica`
Combinatorica`

MinimumChangePermutations

MinimumChangePermutations[l]

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

Details

See Also

DistinctPermutations  LexicographicPermutations

Tutorials