Combinatorica`
Combinatorica`
ToCycles
ToCycles[p]
gives the cycle structure of permutation as a list of cyclic permutations.
Details and Options
- To use ToCycles, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
ToCycles[p]
gives the cycle structure of permutation as a list of cyclic permutations.