def cyclic(n):
    gen = list(range(n))
    for i in range(n):
        yield Permutation(gen)
        gen = rotate_left(gen, 1)
Generates the cyclic group of order n, Cn.
dataset/ETHPy150Open sympy/sympy/sympy/combinatorics/generators.py/cyclic