P427: Enumeration of all cycles in an $n$-cube, where $n \le 4$

P427: Enumeration of all cycles in an $n$-cube, where $n \le 4$
Input:
An integer $n$.
Output:
All cycles (closed paths) in an $n$-cube.
Complexity:
Comment:
Reference:
[Gilbert1958] (Bibtex)