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

FUNCTION: Code2Perm - calculate a permutation from its code

CALLING SEQUENCE:

Code2Perm(code)
Code2Perm(code, n)
SG[Code2Perm](code)
SG[Code2Perm](code, n)

PARAMETERS:

code = a list denoting the code of a permutation
n = the degree of a symmetric group

SYNOPSIS:

EXAMPLES:


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

SEE ALSO: Perm2Code