powered by
Get the permutation as a vector given the set of cycles in which it factorizes
cycles2perm(cycles)
The permutation in vector notation
a list with the set of disjoint cycles
cycles2perm(perm2cycles(c(1,5,2,3,4)))
Run the code above in your browser using DataLab