Manuscript Offprint
arXiv:2611.05300Counterexamples to the Happy Edge Conjecture in Plane Spanning Trees
Abstract
We study the problem of reconfiguring plane, straight-line spanning trees on point sets in the plane. A flip is a reconfiguration step in which one edge of a tree is replaced with another, yielding again a plane spanning tree. For a given point set , the flip graph has a vertex for each plane spanning tree on , and an edge between any two trees that differ by a single flip.
The folklore happy edge conjecture suggests that any edge shared by both the initial and the target tree (a happy edge) is never flipped in a shortest flip sequence. This conjecture was computationally verified for up to 10 points in convex position. In this paper, we disprove this conjecture both on general point sets and on point sets in convex position by providing two counterexamples on 16 and 30 points, respectively.
The counterexample for point sets in general position also holds for compatible flips, while the happy edge property holds for compatible flips in convex point sets as shown by Aichholzer, Dorfer, and Vogtenhuber [GD 2025].
2012 ACM Subject Classification Theory of computation → Computational geometry
Keywords and phrases Plane spanning trees, point sets, convex position, non-crossing, flip graph, happy edge conjecture
Funding Joseph Dorfer: Austrian Science Fund (FWF) 10.55776/DOC183.
Peter Kramer: Supported by a fellowship of the German Academic Exchange Service (DAAD) and the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation), grant 530918134.
Christian Rieck: Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation), grant 522790373.
Acknowledgements This work was initiated at the Reconfiguration Week hosted at TU Graz in March 2025. We thank the organizers and all participants for fruitful discussions and the very good atmosphere.
1 Introduction
Reconfiguration problems ask whether one feasible state of a system can be transformed into another through a sequence of allowed moves. A classical example concerns the reconfiguration of triangulations of a convex point set. In this context, a flip replaces the common diagonal of two adjacent triangles with the other diagonal of the convex quadrilateral they form. The resulting flip graph, whose vertices are triangulations and whose edges correspond to flips, is the 1-skeleton of the associahedron. These triangulations are in bijection with binary
Counterexamples to the happy edge conjecture in plane spanning trees
trees [28], and each flip corresponds exactly to a rotation in the associated tree. Consequently, the minimum number of flips needed to transform any triangulation into any other equals the number of rotations needed to transform their corresponding binary trees. This provides an algorithmic motivation for studying shortest flip sequences: rotations are basic operations of binary trees, and having a fast method to compute shortest distances would immediately improve the efficiency of algorithms that are based on those data structures.
While the diameter of the 1-skeleton of the associahedron is known exactly for all sizes [26], determining the diameter of the flip graph of plane spanning trees remains open, even for points in convex position. Avis and Fukuda [8] proved that, for any set of points in general position, this flip graph is connected and has diameter at most . The lower bound on the diameter of by Hernando, Hurtado, Márquez, Mora, and Noy [19] even holds for the special case of convex point sets. The currently best known lower bound is , established by Bjerkevik, Dorfer, Kleist, Ueckerdt, and Vogtenhuber [10]. For convex point sets, the upper bound was gradually improved [1, 14, 15], with the currently best known bound being by Bjerkevik, Kleist, Ueckerdt, and Vogtenhuber [11].
The authors of [1] present their bound as follows:
“...happy edges do not flip. An unhappy edge of flips once or twice, and if twice, it flips to the convex hull and then to an edge of .”
Whether guided by structural evidence or a little wishful thinking, it is tempting to hope that shortest flip sequences also admit such a simple structure. In fact, the following conjecture, which captures exactly this property, is widely considered folklore.
► Conjecture 1 (Happy edge conjecture). Let and be two plane spanning trees, and let be the set of all happy edges. Then there exists a shortest flip sequence such that for every .
In other words, the happy edge conjecture postulates that any two plane spanning trees on a point set admit a shortest flip sequence that preserves every edge common to the initial and target trees. This conjecture has been a subject of significant interest for multiple decades, with several works providing improved bounds on the flip graph diameter by giving constructive arguments that satisfy this property [1, 11, 14]. These constructions provided evidence that shortest sequences might also have this structure. Recent work has further attempted to strengthen the original conjecture and obtain additional structural properties. The parking edge conjecture [1] intuitively states that shortest flip sequences on points in convex position use only edges in the union of trees and on their convex hull. While this conjecture implies both the happy edge conjecture [1] and the slightly weaker reparking conjecture [4], it was recently disproved by Aichholzer, Dorfer, Kramer, Rieck, and Vogtenhuber alongside the latter [4]. Their counterexamples show that shortest flip sequences may insert additional edges that are not edges of the convex hull, and may require an edge to be flipped more than twice, refuting the reparking conjecture. This invalidated the most recent and promising approach to the general happy edge conjecture. For some settings with restricted flip operations, the conjecture has been settled independently. In particular, this is the case for flips restricted to rotations and edge slides [1, 5, 7].
This left three cases unresolved: compatible flips on point sets in general position, and unrestricted flips on point sets in either convex or general position.
From a computational complexity perspective, Bjerkevik, Dorfer, Kleist, Ueckerdt, and Vogtenhuber [10] proved that, even on convex point sets, deciding whether two plane spanning trees can be transformed into one another using at most flips is NP-complete. This holds for unrestricted flips, compatible flips, and rotations.
The first construction consists of two plane spanning trees on 16 points in general position for which preserving all happy edges increases the flip distance from 12 to 13.
► Theorem 2. There exists a set of 16 points in general position, and two plane spanning trees and on , such that the flip distance between and is 12, but every flip sequence from and that never removes a happy edge has at least 13 flips.
In particular, every shortest flip sequence from and removes the same happy edge.
Interestingly, both distances are attained by compatible flip sequences, and the lower bounds apply to unrestricted flips. Thus the same distances hold when only compatible flips are allowed, giving the following consequence.
► Corollary 3. The happy edge property fails for compatible flips of plane spanning trees on point sets in general position.
The second construction consists of two plane spanning trees on 30 points in convex position. Here, preserving all happy edges increases the flip distance from 19 to 20.
► Theorem 4. There exist two plane spanning trees and on 30 points in convex position, such that the flip distance between and is 19, but every flip sequence from and that never removes a happy edge has at least 20 flips.
In particular, every shortest flip sequence from and removes the same happy edge.
Both constructions exploit the same principle: temporarily removing a happy edge allows a single parking edge to help transform two different parts of the trees. The resulting reduction in the number of parking edges outweighs the additional insertion needed to restore the happy edge. We give explicit flip sequences and direct combinatorial proofs of the matching lower bounds. Together with the known results for rotations and slides, our results complete the classification for the four prominent flip types. The happy edge property holds only for compatible flips on convex point sets, as summarized in Table 1.
Table 1 The happy edge property for plane spanning trees under the four prominent flip types. A check mark indicates that the property holds, and a cross indicates that it fails.
| Happy edge property | Convex position | General position |
|---|---|---|
| Flips | ✗ [Theorem 4] | ✗ [Theorem 2] |
| Compatible flips | ✓ [5] | ✗ [Theorem 3] |
| Rotations | ✗ [5] | ✗ [5] |
| Slides | ✗ [1] | ✗ [7] |
1.2 Definitions and concepts
We consider the reconfiguration of plane spanning trees on general point sets and point sets in convex position. Let denote a planar point set. For , we denote by the straight-line segment connecting the two points. A plane spanning tree of is then a set of edges that define a tree in which the edges' line segments are pairwise
Counterexamples to the happy edge conjecture in plane spanning trees
either disjoint or meet at a common endpoint. We denote the removal and insertion of an edge by and , using standard set notation otherwise. A flip in a plane spanning tree removes an edge and adds an edge such that is again a plane spanning tree. If is clear from context, we denote this by and write that is flipped to . For a graph , we denote its vertex set by and its edge set by .

Figure 1 Flip sequence with four flip types: crossing, rotation, compatible, and edge slide.
Flip types. A flip is compatible if the two straight-line segments do not share an interior point, and crossing otherwise. For , a compatible flip is a rotation around the vertex . Furthermore a flip is called a slide if . This can be interpreted as “sliding” the edge along into . All flip types are depicted in Figure 1.
Flip graphs. The flip graph of plane spanning trees of is the graph that has all plane spanning trees as its vertices. Two spanning trees share an edge in the flip graph if and only if they can be transformed into one another via a single flip (of some type). Given a pair of trees and , a flip sequence from to is then a path in the flip graph denoted by a sequence of trees such that consecutive trees only differ by a single flip; its length is the number of flips in the sequence. The flip distance of and , denoted by , is the length of a shortest flip sequence from to . The diameter of a flip graph denotes the maximum flip distance between any pair of trees.
An edge is called a happy edge with respect to and . Conversely, if is introduced by a flip, but is not in , we say that is a parking edge. For an edge , we denote by be the subgraph induced by the trees containing . For two trees and containing , we denote by the minimum length of a flip sequence from to that preserves .
1.3 Further related work
Happy edges have a long history in the reconfiguration of plane spanning graphs and for a long time, it seemed like the happy edge property has a strong connection to the computational complexity of finding shortest flip sequences between two configurations. Sleator, Tarjan, and Thurston [28] established the happy edge property for triangulations of convex point sets. They also showed that whenever a flip inserts an edge of the target triangulation, some shortest flip sequence starts with that flip. Thus, target edges can be inserted greedily whenever possible, without increasing the number of flips needed. These insights underpin several FPT algorithms [12, 16, 22, 24], parameterized by the flip distance. Conversely, for triangulations of point sets in general position, the happy edge property fails [13]. Constructions exploiting this were key to the NP-hardness proofs in the case of point sets in general position [23, 25], as well as simple polygons [6].
A similar pattern appears for plane perfect matchings. On point sets in convex position, the happy edge property holds, and Hernando, Hurtado, and Noy [20] gave a characterization of the flip distance between matchings that allows it to be computed in polynomial time.
Conversely, for point sets in general position, the happy edge property fails and computing the flip distance is NP-hard [9]. For plane almost-perfect matchings, the happy edge property also fails, even in convex position, and deciding whether the flip distance is at most a given bound is NP-complete on point sets in general position [2].
The aforementioned results suggested that preserving happy edges might be closely linked to the existence of efficient algorithms for computing flip distances. Recent results show that this connection does not hold in either direction. Aichholzer and Dorfer [3] gave a linear-time algorithm for computing the flip distance between plane spanning paths on convex point sets, although the happy edge property already fails on four points. Conversely, Dorfer [17] proved that computing the flip distance between triangulations of convex point sets is NP-hard, despite the happy edge property. The same combination occurs for compatible flips of plane spanning trees on convex point sets: the happy edge property holds, but computing the flip distance is NP-hard [10]. Thus the happy edge property alone does not determine the computational complexity of finding shortest flip sequences. Table 2 summarizes the results.
Table 2 Happy edge properties of flips in other families of plane spanning graphs.
| Happy edge property | Convex position | General position |
|---|---|---|
| Triangulations | ✓ [28] | ✗ [13, 21] |
| Perfect matchings | ✓ [20] | ✗ [27] |
| Almost perfect matchings | ✗ [2] | ✗ [2] |
| Paths | ✗ [3] | ✗ [18] |
2 Counterexample for general point sets
In this section, we provide a counterexample for the happy edge property in general point sets. We present the instance on 16 points and give an intuitive explanation of why happy edges must be flipped in any shortest flip sequence. Afterward, we show that, for this instance, a shortest flip sequence preserving all happy edges requires exactly one more flip than a shortest flip sequence that removes at least one happy edge.
Construction of the counterexample. The instance consists of two plane spanning trees on a set of 16 points in general position, both trees are depicted in Figure 2. Six of the 15 edges are happy edges. Thus, every flip sequence transforming into requires at least nine flips as every flip can only insert one edge of .
High-level intuition. The construction contains four pairs of leaves whose initial and target edges mutually block one another. Thus, each pair needs a parking edge to maintain connectivity while the obstruction is resolved. Every edge connecting vertices from different pairs crosses a happy edge, so preserving all happy edges forces the four pairs to use distinct parking edges. Removing the happy edge allows two parking edges to serve two pairs of leaves each, first keeping one leaf connected, and later another one. Sharing those parking edges saves two insertions, while restoring the happy edge only costs one. Together, this yields a sequence of flips. Since preserving all happy edges results in at least flips, every shortest flip sequence must remove at least one happy edge.
Counterexamples to the happy edge conjecture in plane spanning trees

(a)

(b)
Figure 2 The two plane spanning trees (a) and (b) on a point set of 16 points that constitute a counterexample to the happy edge property in general point sets. The happy edge must be flipped in every shortest flip sequence. We use the following color convention: edges in are red, those in are blue, their intersection is black, and all other edges are green.
Why preserving happy edges requires 13 flips. We first show that each pair of leaves requires an incident parking edge. We then use this observation to prove that every flip sequence preserving all happy edges has length at least 13.
For each , , let and denote its unique incident edges in and , respectively. Recall that, for each , crosses , and crosses , as visualized in Figure 2.
Lemma 5. Every flip sequence from to contains, for each , a parking edge incident to at least one vertex of the pair of leaves.
Proof. Fix any and consider the first flip that removes either or . Such a flip exists because neither edge belongs to . Suppose that it removes ; the other case is symmetric. Immediately after the flip, is still present, and hence, is still missing as well, as it crosses . Since every flip must result in a tree, there is an edge incident to . The only edges incident to in are and , but neither of them can be added in that flip. Thus, must be a parking edge.
Lemma 6. Every flip sequence from to that preserves all happy edges has length at least 13.
Proof. Consider a flip sequence that preserves all happy edges. By Theorem 5, for each , the sequence contains a parking edge incident to at least one vertex of the pair . Every edge connecting vertices from different pairs crosses a happy edge. Consequently, the parking edges for are distinct. Each of those four parking edges must be inserted during the flip sequence, in addition to the nine edges that are in but not in . Since a flip can only insert a single edge, the flip sequence has length at least .
A flip sequence of length 12. Due to Theorem 6, there are no flip sequences of length less than 13 that preserve all happy edges. However, we now show that there exists a flip sequence of length at most 12 that successfully reconfigures into . Consequently, this flip sequence removes a happy edge. This flip sequence, which removes the happy edge , is listed in Table 3 and illustrated in full on Figure 5. Together with the bound from Theorem 6, this already proves that Theorem 1 is false for plane spanning trees on general point sets. In the following, we show that there is in fact no shorter flip sequence, and that the edge is the unique happy edge that must be flipped in every shortest flip sequence.
Table 3 A sequence of 12 compatible flips transforming into . After removing , we transform pairs and using the parking edge , and afterward the pairs and using the parking edge . The final flip restores .
| No. | removed edge | inserted edge |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 | ||
| 6 | ||
| 7 | ||
| 8 | ||
| 9 | ||
| 10 | ||
| 11 | ||
| 12 |
► Theorem 2. There exists a set of 16 points in general position, and two plane spanning trees and on , such that the flip distance between and is 12, but every flip sequence from and that never removes a happy edge has at least 13 flips.
In particular, every shortest flip sequence from and removes the same happy edge.
Proof. The proof is split into three parts. We first show that (1) the flip distance is 12. We then prove that (2) preserving all happy edges requires exactly 13 flips. Finally, we show that (3) every shortest flip sequence removes and preserves all other happy edges.
By Theorem 5, every flip sequence contains a parking edge incident to a vertex of each of the four pairs of leaves. Since an edge connects two vertices, every sequence contains at least two distinct parking edges.
We begin by showing that 12 flips are necessary. A sequence preserving all happy edges has length at least 13 by Theorem 6. Any other sequence must reinsert a happy edge that it removes, since it belongs to the target tree. Additionally, the sequence must also insert the nine edges that belong to but are not in , and at least two distinct parking edges. It therefore has length at least . Together with the sequence given in Table 3, this proves that .
We now prove that 13 flips suffice when all happy edges must be preserved. The first flip inserts a target edge. Afterward, we reconfigure the four pairs of leaves, one after the other, using three flips for each pair. For , let
Counterexamples to the happy edge conjecture in plane spanning trees

(a)

(b)

(c)

(d)

(e)

(f)

(g)

(h)

(i)

(j)

(k)

(l)
Figure 3 A shortest flip sequence from to . Note that the first flip removes the happy edge uv, which is then reinserted by the final flip of the sequence.
Thus joins to the initial neighbor of . For each , in increasing order, perform the flips
The first flip keeps connected through the parking edge while removing , which crosses . The second flip inserts and removes , which crosses . The third flip therefore completes the transformation of the pair by replacing with . In every flip, the removed and inserted edges are incident to the same leaf, so the resulting graph remains a spanning tree and the two exchanged edges do not cross. In each flip, the inserted and removed edges do not cross. Thus all flips are valid and compatible. The sequence did not remove any happy edge, and it has length . Together with Theorem 6, this proves that .
It remains to show that every shortest flip sequence removes and preserves every other happy edge. For this, consider any flip sequence of length 12. It must remove a happy edge, since otherwise it has length at least 13. We already know that the sequence removes exactly one happy edge. Suppose that is preserved. Neither parking edge can connect a vertex of the pairs or to a vertex of the pairs or , since such an edge would cross . Nevertheless, the two parking edges must together be incident to all four pairs by Theorem 5. Consequently, one must join and , and another one joins and . The former crosses , the latter crosses . Both of these happy edges must be removed, contradicting the fact that exactly one happy edge is removed in any flip sequence of length 12. Hence, every shortest flip sequence removes and preserves every other happy edge.
Note that all flips in our sequence of 12 flips are compatible, and that the arguments in the proof of Theorem 2 apply to compatible flips as well. Thus, we obtain the following.
► Corollary 7. The happy edge property fails for compatible flips of plane spanning trees on point sets in general position.
3 Counterexample for convex point sets
We now turn our attention to convex point sets. Recall that, unlike general points, the happy edge property holds for compatible flips on convex point sets [5]. We will construct an instance consisting of two trees and on the vertices of a regular 30-gon, and again give an intuitive explanation of why happy edges must be flipped in any shortest flip sequence.
Construction of the counterexample. Consider 30 points in convex position in counterclockwise cyclic order. We label these , as depicted in Figure 4. The happy chord separates the four groups of seven vertices each into two halves, each half containing two of the groups together with and . In , the - and -groups are connected to , while the - and -groups attach to . This attachment is reversed in , and the edges within each group are rearranged. The two trees share thirteen edges, the chord as well as twelve convex hull edges; thus, we have an immediate lower bound of 16 on their flip distance. In the - and -groups, every missing target edge crosses two initial edges; for the - and -groups, the same applies in reverse.
Counterexamples to the happy edge conjecture in plane spanning trees

(a)

(b)
Figure 4 The two plane spanning trees (a) and (b) on a convex point set of 30 points that constitute a counterexample to the happy edge property. The happy chord must be flipped in any shortest flip sequence.
High-level intuition. The construction is built around the happy chord , which separates the - and -groups from the - and -groups. As long as remains, no edge can connect a vertex strictly on one side to a vertex strictly on the other. Consequently, every flip acts within one half, and the lengths of the flip sequences within both halves add up.
Each half contains two groups, with four target edges in each group; thus, at least eight flips are needed to insert just these edges. However, the groups cannot be transformed by using only those 8 flips: each target edge in the top half crosses two edges from the initial tree, so we must first remove such an edge and use it as a connectivity preserving parking edge. For the lower half, the same argument applies when we read the reconfiguration backwards.
We claim that each half needs at least 10 flips. To understand this lower bound, consider the upper half of . As noted above, we need to insert eight target edges, but none of them can be inserted in the first flip, as each crosses two existing edges. A flip sequence of 9 flips only has room for a single parking flip, which would have to help both groups. However, the construction rules this out: any parking edge capable of helping both groups would cross an existing edge that must still be present when the parking edge is inserted. Thus, at least 10 flips are needed. The same arguments apply for the bottom half.
Now, removing allows a different approach, as we can work on groups from opposite halves together. We first connect the - and -groups with a parking edge. This edge first helps to keep parts of the -group connected through the -group while we insert edges in the upper half. Simultaneously, it keeps parts of the -group connected to the -group when we insert edges in the bottom half. Thus, one parking edge provides a temporary connection that is needed for both groups.
However, this results in a flip sequence of 10 flips when we restore after those transformations, and the same holds for reconfiguring the - and -groups, resulting in 20 flips. We can save one flip in between: rather than putting back after transforming the - and -groups, we directly flip to another parking edge that helps to reconfigure the - and -groups. We then restore only at the very end.
Altogether, this gives a flip sequence of 19 flips, whereas preserving requires at least 20. Consequently, every shortest flip sequence must remove this happy edge.
Preserving happy edges yields flip sequences of length at least 20. Let and denote the two halves of the point set, each including and , and let and be the corresponding subgraphs for .
As long as is preserved, every flip acts entirely within one half. Indeed, connecting any vertex of to any vertex of would cross . Consequently, every intermediate tree induces a spanning tree on each half: every vertex must be connected within its own half to either or , which are themselves joined by . Removing an edge other than from one of these induced trees disconnects it, and inserting an edge in the other half cannot restore its connectivity. From this, it follows that
We now show that, when is preserved, exactly 10 flips are needed in each half to transform the initial tree into the target tree. Table 4 gives sequences of 10 flips each to transform into and into .
Table 4 A sequence of 20 flips transforming into while preserving all happy edges. While the first 10 flips act on , the remaining 10 act on . Parking edges are , , , and .
Flip sequence on
| No. | removed edge | inserted edge |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 | ||
| 6 | ||
| 7 | ||
| 8 | ||
| 9 | ||
| 10 |
Flip sequence on
| No. | removed edge | inserted edge |
|---|---|---|
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | ||
| 15 | ||
| 16 | ||
| 17 | ||
| 18 | ||
| 19 | ||
| 20 |
► Lemma 8. For each of the two halves and , exactly 10 flips are needed to transform the induced initial tree into the induced target tree while preserving .
Proof. Table 4 describes sequences of length 10 for the two halves, each preserving . Thus, it remains to show that fewer than 10 flips cannot suffice.
We first consider the reconfiguration from to . For each , every target edge in crosses both initial edges in , and every target edge in crosses both initial edges in . Thus none of the eight missing target edges can be inserted in the first flip, since a flip removes only one edge.
A sequence of at most nine flips must therefore have exactly nine flips: the first inserts a parking edge , and the remaining eight insert the eight missing target edges, each exactly once. In particular, is the only parking edge, and no removed initial edge can be reinserted.
We show that must connect vertices from the two groups. Consider either group immediately before its first missing target edge is inserted. At least one of the two initial
Counterexamples to the happy edge conjecture in plane spanning trees

(a)
(b)
(c)
(d)

(e)
(f)
(g)
(h)

(i)
(j)
(k)
(l)

(m)
(n)
(o)
(p)

(q)
(r)
(s)
Figure 5 A shortest flip sequence from to .
edges crossing that target edge must already have been removed, since the upcoming flip can remove only one of them. Initially, the group together with induces a tree that is attached to the rest of the vertices only through . The removal therefore disconnects some of its vertices from within the remaining initial edges. Recall that no missing target edge of this group has yet been inserted, and that target edges of the other group have no endpoint in this group. Thus, must be present and reconnect these vertices. Applying this argument to both groups shows that joins an -vertex to a -vertex.
We now examine the -group more closely. Consider the tree immediately before the first missing target edge which is incident to a vertex is inserted. As argued above, at least one initial edge of the group has already been removed. We claim that exactly one has been removed. Initially, the vertices induce a tree. Removing two or more edges from this tree would split it into at least three components, at least two of which do not contain . Each of these components would need a connection to the rest of the current spanning tree. However, no missing target edge of the -group has yet been inserted, and target edges of the -group have no endpoint in the -group. Thus, the parking edge is the only edge that can provide such a connection. Since has exactly one endpoint in the -group, it can connect only one of these components to the rest of the tree. Consequently, exactly one initial edge of the -group has been removed.
The removed edge must be one of the two edges crossing the target edge about to be inserted; otherwise, both crossing edges would still be present, and the upcoming flip could remove only one of them. By the crossing relations identified above, the removed edge therefore belongs to . In particular, it is not , so remains present and connects directly to . Removing that edge splits the initial tree on into two components: one contains both and , and the other must be connected to the rest of the current tree by the parking edge . Thus the endpoint of in the -group must lie in the latter component and cannot be .
We already know that connects an -vertex to a -vertex. Consequently, with and . But the endpoints of and occur in the cyclic order , so these two edges cross. Since both are present in the current tree, this contradicts planarity. Thus, in the upper half we can not start the flip sequence by inserting a parking edge , and consequently we cannot obtain a sequence of length 9.
For the other half, we apply the same argument to the reverse transformation, i.e., from to . Here, initial and target edges refer to this reversed direction. Each group together with again induces an initial tree attached to the rest only through . For each , every target edge in crosses both initial edges in , and every target edge in crosses both initial edges in .
As before, a sequence of at most nine flips would use a single parking edge joining the two groups. Immediately before the first target edge of the -group is inserted, exactly one edge of that group of the initial tree has been removed. By the crossing relations above, it belongs to . Thus remains present, and lies in the component containing . Since must reconnect the other component, its endpoint in the -group cannot be . Hence, we have with and . Every such edge crosses the preserved edge , since their endpoints occur in the cyclic order . This is again a contradiction.
Reversing a sequence preserves its length and the requirement to preserve , so the forward flip sequence also requires at least 10 flips.
Counterexamples to the happy edge conjecture in plane spanning trees
We have shown that every flip sequence preserving the happy edge has length at least 20. Since all other happy edges lie on the convex hull and are preserved by every shortest flip sequence, any sequence shorter than 20 flips must remove .
A flip sequence of length 19 shares parking edges across the happy chord. We now provide a sequence of 19 flips by temporarily removing , allowing parking edges to connect vertices on opposite sides of it. One such sequence is given in Table 5.
Table 5 A sequence of 19 flips transforming into . The diagonal is removed in the first flip and restored in the last. The parking edges and are used successively to transform the four groups.
| No. | removed edge | inserted edge |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 | ||
| 6 | ||
| 7 | ||
| 8 | ||
| 9 | ||
| 10 | ||
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | ||
| 15 | ||
| 16 | ||
| 17 | ||
| 18 | ||
| 19 |
We now rigorously prove that every shortest flip sequence between the two trees in the construction must remove a happy edge.
► Theorem 4. There exist two plane spanning trees and on 30 points in convex position, such that the flip distance between and is 19, but every flip sequence from and that never removes a happy edge has at least 20 flips.
In particular, every shortest flip sequence from and removes the same happy edge.
Proof. We first determine the minimum length of a flip sequence preserving . Every such flip acts entirely within one of the two halves and . By Theorem 8, each half requires at least ten flips. The sequence in Table 4 attains the resulting bound of 20 flips and preserves all happy edges. Consequently, .
We next construct a sequence of 19 flips by temporarily removing . Table 5 gives an explicit sequence from to . The first flip replaces by . Flips 2–9 transform the - and -groups using the parking edge . Flip 10 replaces by , after which flips 11–18 transform the - and -groups using the parking edge . The final flip replaces by . It can be checked directly that this sequence is valid, giving .
To prove the matching lower bound, we show that every sequence contains a parking edge incident to each of the four groups. To see this, consider the - or -group just before its first missing target edge is inserted. One of the two initial edges crossing this target edge must already have been removed and not yet reinserted. This disconnects some vertices from within the remaining initial edges. Since no missing target edge of the group has yet been inserted, only a parking edge can reconnect them. The same argument applies to the - and -groups when the sequence is reversed; reversal does not change which edges are parking edges.
An edge has endpoints in at most two groups, so at least two distinct parking edges must occur. A sequence preserving requires at least 20 flips. Any other sequence must insert the sixteen missing target edges, at least two parking edges, and once more. It therefore requires at least 19 flips. Together with the explicit sequence from Table 5, this gives . Hence every shortest flip sequence removes the happy edge , disproving the happy edge property for plane spanning trees on point sets in convex position.
4 Conclusion
We have shown that the happy edge property fails for plane spanning trees even on point sets in convex position. For point sets in general position, the demonstrated counterexample also applies when only compatible flips are allowed. In contrast, the happy edge property holds for compatible flips on point sets in convex position [5]. Together with the known positive results and counterexamples to the parking edge and reparking conjectures [4], these results complete the picture of when these three conjectures hold.
AI disclosure. An initial counterexample to the happy edge conjecture for point sets in general position, consisting of 29 points, was found using ChatGPT-Sol 6.1. The smaller counterexample in general position as well as the counterexample in convex position were found using Claude Opus 5.5. The manuscript and figures were prepared by the authors. We refined, extended, and simplified the reasoning, and take full responsibility for the mathematical correctness of the presented arguments.
References
1 Oswin Aichholzer, Brad Ballinger, Therese Biedl, Mirela Damian, Erik D. Demaine, Adam Hesterberg, Matias Korman, Anna Lubiw, Jayson Lynch, Josef Tkadlec, and Yushi Uno. Reconfiguration of non-crossing spanning trees. Journal of Computational Geometry, 15(1):224–253, 2024. doi:10.20382/jocg.v15i1a9.
2 Oswin Aichholzer, Sofia Brenner, Joseph Dorfer, Hung P. Hoang, Daniel Perz, Christian Rieck, and Francesco Verciani. Flipping odd matchings in geometric and combinatorial settings. In Symposium on Graph Drawing and Network Visualization (GD), pages 12:1–12:18, 2025. doi:10.4230/LIPIcs.GD.2025.12.
3 Oswin Aichholzer and Joseph Dorfer. A linear time algorithm for the flip distance between plane spanning paths in convex point sets. Computing in Geometry and Topology, 5(3):2:1–2:17, 2026. doi:10.57717/CGT.V5I3.93.
4 Oswin Aichholzer, Joseph Dorfer, Peter Kramer, Christian Rieck, and Birgit Vogtenhuber. Structural properties of shortest flip sequences between plane spanning trees. In International Symposium on Graph Drawing and Network Visualization (GD), 2026. arXiv:2603.05205.
Counterexamples to the happy edge conjecture in plane spanning trees
5 Oswin Aichholzer, Joseph Dorfer, and Birgit Vogtenhuber. Constrained flips in plane spanning trees. In Symposium on Graph Drawing and Network Visualization (GD), pages 5:1–5:18, 2025. doi:10.4230/LIPIcs.GD.2025.5.
6 Oswin Aichholzer, Wolfgang Mulzer, and Alexander Pilz. Flip distance between triangulations of a simple polygon is NP-complete. Discrete & Computational Geometry, 54(2):368–389, 2015. doi:10.1007/S00454-015-9709-7.
7 Oswin Aichholzer and Klaus Reinhardt. A quadratic distance bound on sliding between crossing-free spanning trees. Computational Geometry, 37(3):155–161, 2007. doi:10.1016/J.COMGEO.2004.12.010.
8 David Avis and Komei Fukuda. Reverse search for enumeration. Discrete Applied Mathematics, 65(1):21–46, 1996. doi:10.1016/0166-218X(95)00026-N.
9 Carla Binucci, Fabrizio Montecchiani, Daniel Perz, and Alessandra Tappini. Flipping matchings is hard, 2025. arXiv:2503.02842.
10 Hävard Bakke Bjerkevik, Joseph Dorfer, Linda Kleist, Torsten Ueckerdt, and Birgit Vogtenhuber. Flip distance of non-crossing spanning trees: NP-hardness and improved bounds. In Symposium on Computational Geometry (SoCG), pages 16:1–16:18, 2026. doi:10.4230/LIPIcs.SoCG.2026.16.
11 Hävard Bakke Bjerkevik, Linda Kleist, Torsten Ueckerdt, and Birgit Vogtenhuber. Flipping non-crossing spanning trees. In Symposium on Discrete Algorithms (SODA), pages 2313–2325, 2025. doi:10.1137/1.9781611978322.77.
12 Miguel Bosch-Calvo and Steven Kelk. An improved kernel for the flip distance problem on simple convex polygons. Information Processing Letters, 182:106381, 2023. doi:10.1016/J.IPL.2023.106381.
13 Prosenjit Bose and Ferran Hurtado. Flips in planar graphs. Computational Geometry: Theory & Applications, 42(1):60–80, 2009. doi:10.1016/j.comgeo.2008.04.001.
14 Nicolas Bousquet, Lucas De Meyer, Théo Pierron, and Alexandra Wesolek. Reconfiguration of plane trees in convex geometric graphs. Discrete & Computational Geometry, pages 1–34, 2025. doi:10.1007/s00454-025-00785-8.
15 Nicolas Bousquet, Valentin Gledel, Jonathan Narboni, and Théo Pierron. A note on the flip distance between non-crossing spanning trees. Computing in Geometry and Topology, 2023. doi:10.57717/cgt.v2i1.36.
16 Sean Cleary and Katherine St. John. Rotation distance is fixed-parameter tractable. Information Processing Letters, 109(16):918–922, 2009. doi:10.1016/J.IPL.2009.04.023.
17 Joseph Dorfer. Flip distance between triangulations of convex polygons is NP-complete. In Foundations of Computer Science (FOCS), 2026. arXiv:2602.22874.
18 Stefan Felsner, 2023. Personal communication.
19 M. Carmen Hernando, Ferran Hurtado, Alberto Márquez, Mercè Mora, and Marc Noy. Geometric tree graphs of points in convex position. Discrete Applied Mathematics, 93(1):51–66, 1999. doi:10.1016/S0166-218X(99)00006-2.
20 M. Carmen Hernando, Ferran Hurtado, and Marc Noy. Graphs of non-crossing perfect matchings. Graphs and Combinatorics, 18(3):517–532, 2002. doi:10.1007/S003730200038.
21 Ferran Hurtado, Marc Noy, and Jorge Urrutia. Flipping edges in triangulations. In Symposium on Computational Geometry (SoCG), pages 214–223, 1996. doi:10.1145/237218.237367.
22 Haohong Li and Ge Xia. An time FPT algorithm for convex flip distance. Discrete & Computational Geometry, 73(3):702–718, 2025. doi:10.1007/s00454-023-00596-9.
23 Anna Lubiw and Vinayak Pathak. Flip distance between two triangulations of a point set is NP-complete. Computational Geometry, 49:17–23, 2015. doi:10.1016/J.COMGEO.2014.11.001.
24 Joan M. Lucas. An improved kernel size for rotation distance in binary trees. Information Processing Letters, 110(12-13):481–484, 2010. doi:10.1016/J.IPL.2010.04.022.
25 Alexander Pilz. Flip distance between triangulations of a planar point set is APX-hard. Computational Geometry, 47(5):589–604, 2014. doi:10.1016/J.COMGEO.2014.01.001.
26 Lionel Pournin. The diameter of associahedra. Advances in Mathematics, 259:13–42, 2014. doi:10.1016/j.aim.2014.02.035.
27 Max Schüßler, 2024. Personal communication.
28 Daniel Dominic Sleator, Robert Endre Tarjan, and William P. Thurston. Rotation distance, triangulations, and hyperbolic geometry. In Symposium on Theory of Computing (STOC), pages 122–135, 1986. doi:10.1145/12130.12143.