Deprecated low-level permutations

sage.combinat.permutation_nk.PermutationsNK(n, k)

This is deprecated in trac ticket #16472. Use Permutations instead (or itertools.permutations for iteration).

EXAMPLES:

sage: from sage.combinat.permutation_nk import PermutationsNK
sage: P = PermutationsNK(10,4)
doctest:...: DeprecationWarning: PermutationsNK is deprecated. Please
use Permutations instead (or itertools.permutations for iteration).
See http://trac.sagemath.org/16472 for details.
sage: [ p for p in PermutationsNK(3,2)]
[[0, 1], [0, 2], [1, 0], [1, 2], [2, 0], [2, 1]]
sage: PermutationsNK(3,2).cardinality()
6
sage: PermutationsNK(5,4).cardinality()
120

Previous topic

Output functions

Next topic

Derecated splits

This Page