ACE | BN | BNA | CG | CLG | COMP | FM | FREE | HEKA | IDCA | NCA | NCSF | PART | SFA | SGA | SP | SYMF | TAB | TYP |
FUNCTION: Cycle2Perm - calculate the permutation from its decomposition into disjoint cycles
CALLING SEQUENCE:
PARAMETERS:
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