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