Combinatorica`
Combinatorica`

NextGrayCodeSubset

NextGrayCodeSubset[l,s]

constructs the successor of s in the Gray code of set l.

Details