Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2 years ago

Max Alekseyev gravatar image

According to the interpretation given in the comments, the desired representation as the product of 2-cycles can be obtained as

prod(Permutation((i,i+1)) for i in t1).cycle_tuples()