Combinatorica`
Combinatorica`
NextGrayCodeSubset
NextGrayCodeSubset[l,s]
constructs the successor of s in the Gray code of set l.
Details and Options
- To use NextGrayCodeSubset, you first need to load the Combinatorica Package using Needs["Combinatorica`"].