Hamiltonian paths where the vertices are integer partitions I have been working on this problem for several months now but have not made much progress. It concerns the set of all integer partitions of n.
Let the vertices of the graph G=G(n) denote all the p(n) integer partitions of n. There is an edge between two partitions if and only if one can be transformed into another by only moving one dot between rows in their Ferrers diagram representations.
So, for example, the partitions (3,2,1) and (3,3) of 6 are linked because we can move the dot in the last row to the second row.
OOO               OOO
OO      --------  OOO
O   

My question: for what values of n does G(n) have a Hamiltonian path from (n) to (1,1,...,1)?
That is, is it possible to go through, without repetition, all the partitions of n by simply moving around the dots in the Ferrers diagrams?
Is there a determinate way to construct such paths?
I have only been able to construct paths for n = 1 to 6.
n=1 (trivial)
n=2:
(2) => (1,1)
n=3:
(3) => (2,1) => (1,1,1)
n=4:
(4) => (3,1) => (2,2) => (2,1,1) => (1,1,1,1)
n=5:
(5) => (4,1) => (3,2) => (2,2,1) => (3,1,1) => (2,1,1,1) => (1,1,1,1,1)
n=6:
(6) => (5,1) => (4,1,1) => (4,2) => (3,3) => (3,2,1) => (2,2,2) => (2,2,1,1) => (3,1,1,1) => (2,1,1,1,1) => (1,1,1,1,1,1)
None of the basic theorems about Hamiltonian paths have not helped me here.
 A: If you mean to allow any part to go down by 1 and any part (or 0) to go up by 1, while maintaining non-increasing order, then Carla Savage's 1989 paper does in fact solve your problem (without requiring "double moves" as in the 10th listed partition of 7 above).
There are refinements of this operation in the literature.  If you only allow a dot to "fall" into an adjacent part, i.e., from $(\ldots, p_i, p_{i+1}, \ldots)$ with $p_i \geq p_{i+1}+2$ to $(\ldots, p_i - 1, p_{i+1}+1, \ldots)$, that is called the "sandpile operation" or "Brylawski's vertical rule".  There is a transpose horizontal rule, and restrictions of these called $\theta$ operations and "ice pile" operations, respectively.  For some of these operations, the set of partitions of $n$ is not a connected graph, much less one with a Hamiltonian path.  A survey article on these operations is available at https://www-complexnetworks.lip6.fr/~latapy/Publis/tcs04a.pdf.
A: Lo, these many years later...
I wrote a Python implementation of Dr. Savage's Gray-code-order partitions algorithm: https://gist.github.com/thquinn/97f3ed433a6fe5796dbbd054de851b84
A: What you want is known as a Gray code for integer partitions.
It exists.
See C. D. Savage, Gray code sequences of partitions, Journal of Algorithms 10 (1989) 577-595.  Disclaimer: I haven't actually read this paper.  Other sources such as this 1997 survey by Savage and these class notes don't say what the construction is but say that it's complicated.
A: There are two great general sources for Gray codes on combinatorial objects you might enjoy:

*

*Frank Ruskey's "Combinatorial Generation" book


*Don Knuth's "Art of Computer Programming", Vol. 4, Fascicle 2-4 (published separately - all excellent), see https://www-cs-faculty.stanford.edu/~knuth/taocp.html
Preliminary versions of some of these can be downloaded from the internet archive.
A: I think your problem is related to the dominance partial-ordering of partitions; given partitions $\alpha=(\alpha_1,\alpha_2,\dots)$ and $\beta=(\beta_1,\beta_2,\dots)$ of $n$, we say that $\alpha$ dominates $\beta$, and write $\alpha\succeq\beta$, if $\alpha_1\geq\beta_1$, $\alpha_1+\alpha_2\geq\beta_1+\beta_2$ and so on. This partial order has a unique maximum element $(n)$ and a unique minimum element $(1^n)$. Now it is not a total order, but given $\alpha$ and $\beta$, there is a unique minimal partition $\mu$ such that $\mu\succeq\alpha$ and $\mu\succeq\beta$. Likewise there is a unique maximal partition $\nu$ such that $\alpha\succeq\nu$ and $\beta\succeq\nu$. Finally, dominance is generated by one-box-shifts i.e. given a partition $\alpha$, and $i<j$, such that $\alpha_i>\alpha_{i+1}=\alpha_{i+2}=\dots=\alpha_{j-1}<\alpha_j$, consider the partition $\beta$ with $\beta_i=\alpha_i-1$, $\beta_j=\alpha_j+1$ and $\beta_u=\alpha_u$, for $u\ne i,j$. Then $\alpha\succeq\beta$, and there is no $\gamma\ne\alpha,\beta$ with $\alpha\succeq\gamma\succeq\beta$. Moreover, for an arbitrary pair $\alpha\succeq\beta$, we can get from $\alpha$ to $\beta$ via a sequence of such one-box shifts.
