 convert/disjcyc - Maple Help

Home : Support : Online Help : convert/disjcyc

convert/disjcyc

convert a permutation in list notation or a word into disjoint cycle notation

convert/permlist

convert a permutation in disjoint cycle notation into list notation Calling Sequence convert(lperm, 'disjcyc') convert(perm, 'permlist', deg) Parameters

 lperm - permutation in list notation perm - the permutation deg - the degree of the permutation Description

 • The argument lperm is expected to be a permutation in list notation. This means that lperm is a list whose ith element is the image of i under the permutation. The permutation is returned in disjoint cycle notation.
 • A list is returned whose ith element is the image of i under perm, for $i=1..\mathrm{deg}$. Examples

 > $\mathrm{convert}\left(\left[3,4,1,2,7,6,5\right],'\mathrm{disjcyc}'\right)$
 $\left[\left[{1}{,}{3}\right]{,}\left[{2}{,}{4}\right]{,}\left[{5}{,}{7}\right]\right]$ (1)
 > $\mathrm{convert}\left(\left[\left[2,4,1\right],\left[7,3\right]\right],'\mathrm{permlist}',7\right)$
 $\left[{2}{,}{4}{,}{7}{,}{1}{,}{5}{,}{6}{,}{3}\right]$ (2)