Solution (source code)

= Solution

\b[Both are Hamiltonian.] A <Hamiltonian cycle> already in the cube is
$$
000,001,011,010,110,111,101,100,000.
$$
Successive triples differ in exactly one bit, and each of the eight <vertices> occurs exactly once before returning. Adding <edges> preserves this <cycle in a graph>.