Combinatorica`
Combinatorica`

ToCycles

ToCycles[p]

gives the cycle structure of permutation p as a list of cyclic permutations.

Details and Options