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

FUNCTION: Cycle2Perm - calculate the permutation from its decomposition into disjoint cycles

CALLING SEQUENCE:

Cycle2Perm(dc)
SG[Cycle2Perm](dc)

PARAMETERS:

dc = any list of list(s)

SYNOPSIS:

EXAMPLES:


> with(SG):
> Cycle2Perm([[1, 7, 2], [4, 6], [3], [5]]);
 
                             [7, 1, 3, 6, 5, 4, 2]
 
> Cycle2Perm([[1, 7, 2], [4, 6]]);
 
                             [7, 1, 3, 6, 5, 4, 2]
 

SEE ALSO: Perm2Cycle Perm2CycleType Vect2Perm