| 1 | initial version |
Define the permutation for each cycle, and multiply them.
Of course the result depends on the order in which you multiply.
Example:
sage: prod(Permutation(c) for c in ("(3, 5)", "(1, 2)", "(2, 5)", "(1, 4)"))
[5, 4, 2, 1, 3]
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.