ACE BN BNA CG CLG COMP FM FREE HEKA IDCA NCA NCSF PART SFA SG SGA SP SYMF TAB TYP

FUNCTION: Perm2Cycle - decompose a permutation into disjoint cycles

CALLING SEQUENCE:

Perm2Cycle(perm)
SG[Perm2Cycle](perm)

PARAMETERS:

perm = any list denoting a permutation

SYNOPSIS:

EXAMPLES:


> with(SG):
> Perm2Cycle([5,4,3,2,1]);
 
                                [[1, 5], [2, 4]]
 

SEE ALSO: Cycle2Perm Perm2CycleType Vect2Perm