Combinatorica`
Combinatorica`
RankSubset
RankSubset[l,s]
gives the rank, in canonical order, of subset s of set l.
Details and Options
- To use RankSubset, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
RankSubset[l,s]
gives the rank, in canonical order, of subset s of set l.