SG::Perm2Cycle --
decomposes a permutation into disjoint cycles
Call(s)
SG::Perm2Cycle(perm)
Parametersperm | - | any list denoting a permutation |
Introduction
The SG::Perm2Cycle function calculates the decomposition of a permutation
into disjoint cycles. It does not print the fixed points (cycles of
length 1).
Example 1>> muEC::SG::Perm2Cycle( [5,4,3,2,1] );
[[1, 5], [2, 4]]
Related FunctionsCycle2Perm, Perm2CycleType, Vect2Perm
MuPAD Combinat, an open source algebraic combinatorics package