PermutationCycles
A permutation given as a one-line word , converted to disjoint-cycle notation (Cycles). The other direction of Permute's two conventions.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
PermutationCycles✓PermutationCycles(perm)the cycles of the one-line permutation perm, fixed points droppedSageMath
enumeratio_permutation_cycles(perm)PermutationCycles(perm, f)every position, fixed points included, each wrapped as a singleton — with f used in place of CyclesTyped signatures
| Type | Package | Applies |
|---|---|---|
(expression<Cycles> | list<integer>, any?) -> any | groupalgebra | always |
Details
- Cycles come out ordered by, and each starting at, its smallest point
- Already-Cycles input passes straight through unchanged —
PermutationCyclesis idempotent on its own output - The identity permutation has no non-trivial cycles, so
PermutationCycles({1, ..., n})isCycles({})
Examples
Basic #
About
| Examples | 8 |
|---|---|
| Checked against | Wolfram Language 8 agreeSageMath 6 agree |
| Crosswalk | Wolfram LanguageSageMath |
Implementation
mapped
sagepackages/oracle/src/mappings.ts See also: Cycles, CycleDecomposition, Permute, InversePermutation