Finite combinatorial classes

class sage.combinat.finite_class.FiniteCombinatorialClass(l)

Bases: sage.combinat.combinat.CombinatorialClass

This class is deprecated, and will disappear as soon as all derived classes in Sage’s library will have been fixed. Please derive directly from Parent and use the category FiniteEnumeratedSets.

INPUT:

  • l a list or iterable

Returns l, wrapped as a combinatorial class

EXAMPLES:

sage: F = FiniteCombinatorialClass([1,2,3])
doctest:warning...:
DeprecationWarning: Please use FiniteEnumeratedSets instead.
See http://trac.sagemath.org/13552 for details.
sage: F.list()
[1, 2, 3]
sage: F.cardinality()
3
sage: F.random_element()
1
sage: F.first()
1
sage: F.last()
3
cardinality()

EXAMPLES:

sage: F = FiniteCombinatorialClass([1,2,3])
doctest:warning...:
DeprecationWarning: Please use FiniteEnumeratedSets instead.
See http://trac.sagemath.org/13552 for details.
sage: F.cardinality()
3
keys()

EXAMPLES:

sage: F = FiniteCombinatorialClass([1,2,3])
doctest:warning...:
DeprecationWarning: Please use FiniteEnumeratedSets instead.
See http://trac.sagemath.org/13552 for details.
sage: F.keys()
[0, 1, 2]
list()
sage.combinat.finite_class.FiniteCombinatorialClass_l

alias of FiniteCombinatorialClass