Combinatorica`
Combinatorica`

NextLexicographicSubset

NextLexicographicSubset[l,s]

gives the lexicographic successor of subset s of set l.

Details and Options