% $Date: 2003/09/15 16:37:45 $ $Author: nthiery $ $Revision: 1.1.1.1 $

\begin{Mhelppage}{Cycle2Perm}%
  {V. Prosper}%
  \begin{MInfo}
    \eng{calculates the permutation from its decomposition into
      disjoint cycles}
  \end{MInfo}
  

\begin{MCalls}
  \Mcall{dc}
\end{MCalls}

\begin{MParameters}
  \param{dc}
  \eng{any list of lists} 
\end{MParameters}

\begin{MIntro}
  \eng{
The {\Mthis} function calculates the permutation  corresponding to its
decomposition \Mex{dc} into disjoint cycles.
Note however that the main format for permutations is the list notation.
 
Fixed points need not to be given in the input.
}
\end{MIntro}

\begin{MExample}{ex1}
\begin{Mexin}
muEC::SG::Cycle2Perm( [[1, 7, 2], [4, 6], [3], [5]] );
\end{Mexin}
\begin{Mexout}
                     [7, 1, 3, 6, 5, 4, 2]
\end{Mexout}
\begin{Mexin}
muEC::SG::Cycle2Perm( [[1, 7, 2], [4, 6]] );
\end{Mexin}
\begin{Mexout}
                     [7, 1, 3, 6, 5, 4, 2]
\end{Mexout}
\end{MExample}

\MRelatedFunctions{Perm2Cycle,Perm2CycleType,Vect2Perm}
\end{Mhelppage}
