Combinatorica`
Combinatorica`

RankSetPartition

RankSetPartition[sp,s]

ranks sp in the list of all set partitions of set s.

RankSetPartition[sp]

ranks sp in the list of all set partitions of the set of elements that appear in any subset in sp.

Details and Options