blob: 222708f72422c58aba66661837b65888e13ed7b1 (
plain) (
tree)
|
|
permutation provides a Permutation class for representing permutations of
finitely many positive integers in Python. Supported operations & properties
include inverses, (group theoretic) order, parity, composition/multiplication,
cycle decomposition, cycle notation, word representation, Lehmer codes, and,
of course, use as a callable on integers.
WWW: https://github.com/jwodder/permutation
|