Combinatorica`
Combinatorica`
LexicographicSubsets
gives all subsets of set l in lexicographic order.
returns all subsets of {1,2,…,n} in lexicographic order.
Details and Options
- To use LexicographicSubsets, you first need to load the Combinatorica Package using Needs["Combinatorica`"].