Graceful Graph Moves
- The extreme sprout
- Proof: All paths are graceful.
- Proof: All caterpillars are graceful.
- The leaf pair and midpoint transfers
- Proof: All double stars are graceful.
- Banana trees!
- The label-sum transfer
- References
In 2020, I was slowly reading Douglas West’s Introduction to Graph Theory and somehow became very interested in the Graceful Tree Conjecture (GTC), which triggered me to write this post. There’s nothing novel in that write-up; it was mostly a notes-to-self, and a place for me to play with nice diagrams. That’s what this post is too.
I set aside graph theory after a few months, picked it back up for Arcol (see here), and returned to it recently. My recent interest is due to frontier models becoming decent at math. Over the past few weeks I’ve had many fun, mathematically lively conversations with GPT-5.5 about the GTC and related matters. One thing I had forgotten is that, if true, the GTC implies Ringel’s tree-packing conjecture, which is itself a fascinating conjecture that is useful in combinatorial design theory.
Quanta Magazine has a nice write-up about the Ringel Conjecture here. However it’s a bit slippery to say that the problem has been solved: what has been proven is the large-tree case. That’s a big deal, but the original conjecture is still open (as I write this anyway).
GPT-5.5 taught me about different families of trees that have been proven to be graceful. Here are three examples: paths, caterpillars, and any tree with a diameter of or less. Interestingly spiders and lobsters have not been settled at the time that I write this, but various subfamilies have been proven to be graceful.
The diameter of a tree is the largest distance, measured in edges, between any two vertices. A leaf is a vertex of degree . A path is a tree whose vertices can be arranged in a single chain, so it has no branching. A caterpillar is a tree for which one can choose a path, called the spine, so that every vertex not on the spine is a leaf adjacent to a spine vertex. Those off-spine leaves are called legs. This convention matters: a spine endpoint can itself be a leaf of the whole tree, but it is not a leg for the construction that we’ll be using later. Note that our definition allows spine vertices to have more than one incident leg.
Using a constructive proof is an easy way to show that one of the above families is graceful. These kinds of proofs rely on transformations that promise to preserve gracefulness. I call them “moves” because some of them remind me a bit of Reidemeister moves from knot theory. Also “moves” makes it feel like a game.
Stars are almost too easy for this list, but they are worth keeping in mind. The star is graceful: label its center and label its leaves . The edge labels are then exactly .
The extreme sprout
Here’s our first move. It’s especially useful for paths and caterpillars, as you’ll see.
The extreme sprout
Suppose is a gracefully labeled graph with edges.
- If a vertex is labeled , attach a new leaf to and label it with .
- If a vertex is labeled , first add to every old vertex label, then attach a new leaf to and label with .
Either way, is the attachment point of the move.
Note that in both cases described by the move, the old edge labels remain as-is.
Proof: All paths are graceful.
Let’s use the extreme sprout move to prove that all paths permit a graceful labeling. We’ll induct on , the number of edges in the path. In fact, the induction proves a slightly stronger statement: for every , there is a graceful labeling of with an attachment point at one end of the path, labeled when is even and labeled when is odd.
For the base case, is a single vertex labeled . For the inductive step, assume the stronger statement holds for . Apply the extreme sprout move at the attachment point. If that point is labeled , the move gives the new leaf label . If that point is labeled , the move gives the new leaf label . In either case, the new leaf becomes the attachment point of the longer path, so the parity condition flips exactly as it should. Thus the stronger statement holds for , and therefore every path is graceful.
Proof: All caterpillars are graceful.
To prove that all caterpillars are graceful, choose a left-to-right orientation of the spine and write its vertices as . Let be the number of legs that need to be attached to . We will grow the caterpillar from left to right. At each spine vertex, we first attach its legs, then move on by attaching the next spine vertex.
Now begin with the one-vertex graph consisting only of , labeled . At any moment, the rightmost spine vertex is an extreme label. More precisely, after reaching , that vertex has label when is even and has the current maximum label when is odd.
At , create every new neighbor by applying the extreme sprout move: first the legs, and then, unless is the last spine vertex, . If is even, then is labeled , so the move assigns the new neighbor the current maximum label. Thus the next spine vertex, if one is created, becomes the maximum-labeled endpoint. If is odd, then has the current maximum label, so the move assigns the new neighbor label . Thus the next spine vertex, if one is created, becomes the -labeled endpoint.
At the last spine vertex, this rule attaches only the remaining legs. At that point every spine edge and every leg of the target caterpillar has been added. Since each individual sprout preserves gracefulness, every intermediate graph is graceful, and the final caterpillar is graceful.
The leaf pair and midpoint transfers
The leaf pair transfer
Suppose is a gracefully labeled tree, and suppose has two attached leaves that we want to move to another vertex . A leaf pair transfer from to deletes the old edges from to those two leaves and replaces them with edges from to the same leaves. No vertex labels are changed. If the moved leaves have labels and , the transfer is allowed when
The leaf midpoint transfer
Suppose is a gracefully labeled tree, and suppose has one attached leaf that we want to move to another vertex . A leaf midpoint transfer from to moves exactly one leaf from to : it deletes the old edge from to that leaf and replaces it with an edge from to the same leaf. No vertex labels are changed. If the moved leaf has label , the transfer is allowed when
Next we’ll use these transfer rules to prove that an interesting family of trees is graceful.
Proof: All double stars are graceful.
A double star is a tree with two adjacent vertices and , called the centers, such that every other vertex is a leaf attached to one of the centers. Write for the double star with leaves attached to and leaves attached to , in addition to the center edge . Thus has edges and vertices. Pay attention to the parity of , the number of leaves attached to ; it’s an important factor in the proof.
By the definition above, every double star is already a caterpillar: take the center edge as the spine, and every other vertex is a leg. So this family is already covered by the caterpillar proof. I still want to give a separate proof because it shows off different move types that come in handy for more complicated families.
Let’s set aside the corner case where one of the stars has no leaves, because then we just have a single star. So assume , and let . Start with the star , centered at and gracefully labeled by This star has one more leaf than the final number of leaves because one of its leaves will become the second center .
Choose which leaf will become by finding the vertex with the following label: In both cases, we can choose exactly leaf labels below and move them from to using only leaf pair transfers and leaf midpoint transfers. The allowed sum for every transfer is so we only need leaf labels that are paired around , with at most one midpoint label.
If is odd: then . Move the leaves labeled : pair with , pair with , and so on, and use one midpoint transfer for the leaf labeled .
If is even: then . Move all leaves labeled except the midpoint leaf; these labels split completely into complementary pairs whose sums are .
Each move preserves label sums, so after all the moves the labeling in the double-star is still graceful.
Banana trees!
By carefully extending the double-star proof it’s possible to show that another delicious family of trees is graceful. Sethuraman and Jesintha proved this in 2009. If you eyeball the example figure below, you can see how it’s a bit like a generalized multi-star.
For and nonnegative integers , the banana tree has vertices and edges So the root is attached to one leaf of each star, and the th star has center and remaining leaves.
For the animated proof we’ll forgo the usual step-by-step description and just play it through in a loop for fun:
As you can imagine, the bookkeeping involved in the Sethuraman-Jesintha proof is a bit mind-bending! See their paper for details.
The label-sum transfer
The last move I want to describe generalizes the leaf transfer rules. It lets you transfer one or two entire subgraphs from one place to another.
The label-sum transfer
Suppose is a gracefully labeled tree. Consider one or two branches attached to , where a branch means the whole component hanging off through its root. Call the roots and, in the two-branch case, . Let be outside those branches. A label-sum transfer from to moves the branch or branches by replacing the attachment edges from with attachment edges from . No vertex labels are changed.
For two branches, the required condition is
For a single branch rooted at , the required condition is the midpoint case
This move was used in the Hrnčiar-Haviar proof that every tree with diameter is graceful. There’s quite a bit of machinery in that proof so it’s a bit out of scope for this post.
References
- A. Rosa, “On certain valuations of the vertices of a graph,” Theory of Graphs, 1967, 349-355.
- S. W. Golomb, “How to number a graph,” in Graph Theory and Computing, 1972, 23-37.
- J. A. Gallian, “Graph Labeling,” Electron. J. Combin., DS6.
- R. Montgomery, A. Pokrovskiy, B. Sudakov, “A proof of Ringel’s conjecture,” Geom. Funct. Anal. 31 (2021), 663-720.
- P. Hrnčiar, A. Haviar, “All trees of diameter five are graceful,” Discrete Math. 233 (2001), 133-150.
- G. Sethuraman, J. Jeba Jesintha, “All banana trees are graceful,” Adv. Appl. Discrete Math. 4(1) (2009), 53-64.
graceful-moves-20260530-a.md / graceful-moves-20260530-a.md.ots
graceful-moves-20260530-b.md / graceful-moves-20260530-b.md.ots