(self, *args)
Load up a Cycle instance with the values for the cycle.

        Examples
        ========

        >>> from sympy.combinatorics.permutations import Cycle
        >>> Cycle(1, 2, 6)
        Cycle(1, 2, 6)
Load up a Cycle instance with the values for the cycle.
Load up a Cycle instance with the values for the cycle .
def __init__(self, *args):
        """Load up a Cycle instance with the values for the cycle.

        Examples
        ========

        >>> from sympy.combinatorics.permutations import Cycle
        >>> Cycle(1, 2, 6)
        Cycle(1, 2, 6)
        """

        if not args:
            return
        if len(args) == 1:
            if isinstance(args[0], Permutation):
                for c in args[0].cyclic_form:
                    self.update(self(*c))
                return
            elif isinstance(args[0], Cycle):
                for k, v in args[0].items():
                    self[k] = v
                return
        args = [int(a) for a in args]
        if has_dups(args):
            raise ValueError('All elements must be unique in a cycle.')
        for i in range(-len(args), 0):
            self[args[i]] = args[i + 1]
def __init__ ( self , * args ) : if not args : return if len ( args ) == 1 : if isinstance ( args [ 0 ] , Permutation ) : for c in args [ 0 ] . cyclic_form : self . update ( self ( * c ) ) return elif isinstance ( args [ 0 ] , Cycle ) : for k , v in args [ 0 ] . items ( ) : self [ k ] = v return args = [ int ( a ) for a in args ] if has_dups ( args ) : raise ValueError ( 'All elements must be unique in a cycle.' ) for i in range ( - len ( args ) , 0 ) : self [ args [ i ] ] = args [ i + 1 ]