CyclePartition
The orbits, as a set partition of the positions.
FindStat
Mp00151via PermutationCyclePartition(Permutation)The orbits, as a set partition of the positions.Typed signatures
| Type | Package | Applies |
|---|---|---|
(permutation) -> set_partition | combinatorics | always |
Details
- Takes a
Permutationand returns aSetPartition— a typed map, so a wrong carrier is a type error rather than a wrong answer. - Removed once for giving every position the same label. The cause was the laziness rule in flat.ts — folding over a list taken out of the accumulator instead of indexing a range. Written by index it is right first time.
Examples
About
| Examples | 1 |
|---|---|
| Crosswalk | FindStat |