Manuscript Offprint
arXiv:2610.28030Logarithmic edge-length ratios for planar drawings of 2-trees
ZAHRA SABAEI, FATEMEH EMAMI, AND YASMIN TOUSINEJAD
ABSTRACT. For a planar graph with at least one edge, let be the infimum of the ratio of the longest to the shortest edge length over all planar straight-line drawings of . We prove that every -vertex 2-tree satisfies . This improves the known upper bound and, together with the lower bound of Blažej, Fiala and Liotta, shows that the maximum of over -vertex 2-trees is . The proof adapts Biedl's recursive bar construction using nonintegral heights and applies a height-preserving straightening theorem.
1. INTRODUCTION
Relations between edge lengths in graph drawings have been studied since at least the late 1980s [2, 8], and controlling differences between these lengths is important both for the readability of planar straight-line drawings [7] and for applications such as unit disk graph approximation [6]. However, requiring all edges to have the same length leads to a difficult decision problem, as Eades and Wormald proved that deciding whether a biconnected planar graph admits such a drawing is NP-hard [8].
These considerations motivate the study of how small the ratio between the longest and shortest edge lengths can be for particular graph classes. Lazard, Lenhart and Liotta [9] studied this ratio for outerplanar graphs and asked whether it is bounded by a constant for 2-trees. For n-vertex 2-trees, Borrazzo and Frati [5] proved an upper bound, whereas Blažej, Fiala and Liotta [4] established a lower bound of order , thereby showing that no constant bound is possible. More recently, Bekos et al. [1] improved the upper bound to through their work on weakly leveled planar drawings and explicitly asked whether the remaining gap could be closed.
We close this gap by proving that every n-vertex 2-tree admits a planar straight-line drawing whose edge-length ratio is bounded by a constant times . The proof uses a recursive bar construction in which the heights of adjacent bars differ by at least one unit, while those of nonadjacent bars need not be separated by a fixed positive amount, allowing the total height to remain logarithmic. Applying a height-preserving straightening theorem and then compressing the horizontal coordinate gives the required drawings, since the vertical separation prevents short edges and the logarithmic total height controls the longest edge.
1.1. Notation and main results. All graphs in this paper are finite and simple. For a graph , let and denote its vertex set and edge set, respectively, and let . Let denote the set of neighbors of a vertex in the graph under consideration. A 2-tree is obtained from a single edge by repeatedly adding a new vertex whose only neighbors are the two endpoints of an existing edge. Thus, for a 2-tree
(1)
A planar straight-line drawing assigns distinct points of to the vertices and represents each edge by the segment between its endpoints. No edge contains a nonincident vertex, and two edges intersect only at a common endpoint. We allow arbitrary real coordinates and do not fix a planar embedding in advance.
Let be a planar graph with at least one edge. For a planar straight-line drawing of and an edge , let denote the Euclidean length of . The edge-length ratio of
Z. SABAEI, F. EMAMI, AND Y. TOUSINEJAD
and the planar edge-length ratio of G are, respectively,
(2)
where the infimum ranges over all planar straight-line drawings of . Using an infimum avoids requiring a drawing with ratio . For , let denote the maximum planar edge-length ratio among all -vertex 2-trees:
(3)
There are finitely many such graphs up to isomorphism, so the maximum in (3) exists.
Theorem 1.1. For every 2-tree G with vertices,
(4)
More precisely, for every , there is a planar straight-line drawing of whose edge-length ratio is less than .
The lower bound of Blažej, Fiala and Liotta [4], together with theorem 1.1, gives the following consequence. A short deduction of the explicit lower bound is included in section 4.
Corollary 1.2. For every integer ,
(5)
Consequently, .
The lower estimate in (5) concerns the largest ratio among graphs of a given order; it is not a lower bound for every 2-tree. The coefficient 5 in (4) comes from the construction, and no claim is made that it is optimal.
1.2. Proof overview. Biedl [3, Section 3] develops recursive bar constructions for small drawings of series-parallel graphs. Our proof uses her arrangement of series and parallel components, including the reversed order of the smaller components in the series step. The change is in the choice of heights and the conditions at the two terminal bars. We use only vertical edge segments and allow nonintegral bar heights. In each height recurrence, the contribution of a largest component has no additive term. Every component whose contribution has an additive term contains at most half the edges of the component being constructed. Several nonadjacent bars can then be placed at distinct rational heights within one unit of vertical space.
In section 2, the height-preserving straightening theorem of Pach and Tóth [10] reduces the problem to constructing bars of bounded total height with at least unit separation along every edge. We give this construction and prove theorem 1.1 in section 3. In section 4, we deduce theorem 1.2, extend the upper bound to graphs with treewidth at most 2, and explain the role of nonintegral heights.
Lemma 2.2. Suppose that a graph G with at least one edge has a bar representation whose bar heights belong to , and that the endpoint heights of every edge differ by at least 1. Then . Moreover, for every , there is a planar straight-line drawing of G with ratio less than .
Proof. Surround the bars by pairwise disjoint thin rectangles, each extending slightly beyond the endpoints of its bar. Since the representation is finite, the rectangles can avoid all nonincident edge segments, and the two rectangles incident with any edge can be vertically separated. Truncate each vertical edge at the boundaries of its endpoint rectangles.
In each rectangle, choose an interior point to represent its vertex and join it by straight segments to the endpoints of the truncated incident edges. The endpoints on the top side of a rectangle are distinct, since otherwise two original edge interiors would overlap; the same holds on the bottom side. Segments joining the chosen point to the top side intersect only at that point, and the same is true for the bottom side. The two groups lie on opposite sides of the horizontal line through the point. The resulting drawing is therefore planar, and every edge is strictly y-monotone.
Fix . Choose the interior points to have pairwise distinct heights, each differing by less than from the height of its bar. Such a choice is possible within the open rectangles. The vertex heights lie in , and each edge has endpoint-height difference at least . Theorem 2 of Pach and Tóth [10], after a rotation by 90 degrees, gives a planar straight-line drawing with these same heights. Its distinct-coordinate assumption holds by the choice of the interior points.
Compress the horizontal coordinate by a positive factor so that the width is at most . This invertible linear map preserves planarity. For the resulting drawing ,
(6)
Consequently, (2) and (6) give
(7)
Both conclusions follow from (7).
An example of the conversion is given in figure 1.
(a) Bars
(b) Straight edges
(c) Compression

FIGURE 1. The conversion for the 2-tree with vertices s, t, u, v and edges st, su, tu, sv, tv. The straight-line drawing keeps the four bar heights, and horizontal compression keeps every vertical difference along an edge. All three representations are planar. The factor 1/2 in (c) is illustrative; the width can be made arbitrarily small as in theorem 2.2.
3. THE RECURSIVE CONSTRUCTION
3.1. Components and their terminals. Fix a construction sequence of the 2-tree. Each vertex other than the initial two vertices is attached to one existing edge, and the two edges created at that step are recorded as children of that edge. For each edge ab, let consist of
Z. SABAEI, F. EMAMI, AND Y. TOUSINEJAD
ab and all edges obtained from it by repeated child steps, together with their endpoints. Its terminals are a, b. If are the vertices attached directly to ab, then
(8)
where ab on the right denotes the graph consisting of that one edge. If k = 0, the union is empty and .
We call an edge component, and call each in (8) a series component, with terminals . Its two edge components meet only at . Different series components in (8) meet only at , so the right side of that equation is a parallel composition of the edge and those series components. All their edge sets are disjoint. These facts follow from the construction sequence, since every new vertex has only the two endpoints of its attachment edge as older neighbors. The edge component of the initial edge is the whole graph.
For any component , define . We construct bar representations of edge components and series components simultaneously by induction on . Terminals are ordered, with denoting the upper terminal and the lower terminal. Vertical reflection allows either ordering of a given pair of terminals.
3.2. The boundary conditions. For each bar , let denote its height and let denote the horizontal coordinates of its left and right endpoints, respectively, so that
(9)
Let be the horizontal coordinate of the vertical segment for the edge uv. The representation lies in a rectangle , where and . We maintain the following conditions.
(B1) The representation satisfies the definition in section 2, has bars at both heights 0, H, and every edge has endpoint-height difference at least 1. All edge columns are pairwise distinct.
(B2) The bars of s, t end at W, and every other bar ends strictly before W.
(B3) The terminal heights satisfy and . No bar has height in either or .
(B4) If , then has a unique neighbor below it, at height 0. For ,
(10)
(B5) If , then has a unique neighbor above it, at height . For ,
(11)
Allowing a terminal to be one unit inside the boundary makes it possible to add an edge in series without increasing the height. Conditions (B4) and (B5) allow that terminal to be moved outside the rectangle later. Positive horizontal scaling and horizontal translation preserve all five conditions, and vertical reflection exchanges the terminal roles. Throughout the construction, the horizontal intervals of different child rectangles are separated by positive gaps.
Lemma 3.1 (Increasing the height). A representation satisfying (B1)–(B5) at height H can be enlarged to any height while preserving these conditions, without decreasing any endpoint-height difference along an edge.
Proof. Choose different from every bar height. Move each bar above q upward by , and extend the edges crossing the line of height q. The inserted horizontal strip contains no bars, so incidences and disjointness are preserved, while every endpoint-height difference stays the same or increases. Bars in the lower boundary band remain fixed, whereas those in the upper boundary band move upward by . The horizontal coordinates of bar endpoints and edge columns remain unchanged, so all five conditions are preserved. □
Lemma 3.2 (Moving the terminals to the boundary). From a representation satisfying (B1)–(B5) at height H, one obtains a bar representation of height in which the terminal bars span the full width at heights 0, . Every other bar has height in . Every edge has endpoint-height difference at least 1, and the edge columns remain distinct.
Proof. In the original coordinates, move t to height -1 and s to height , extend their bars across , and reconnect incident edges in their original columns. We check that this gives a valid new representation; no continuous movement between the two representations is required.
If , extending its incident edges downward introduces no intersection because there are no bars below height 0. Suppose instead that , and let be as in (10). For every neighbor , the new part of the segment for crosses height 0 strictly to the right of all bars at that height. It crosses no bar in by (B3). The edge is replaced by the segment in column between heights -1 and 0, so its new length is 1. Thus the lower-terminal change creates no unwanted edge-bar intersection. The upper-terminal change is justified in the same way by (11).
The two changes are compatible. Since , an exceptional neighbor at height cannot be , and an exceptional neighbor at height cannot be . If is an edge, it is among the other incident edges in each applicable boundary condition, so both extensions of that edge are protected by the strict column inequalities. Distinct edge columns exclude intersections between edge interiors, and the new terminal bars lie outside all other bars. Finally translate upward by 1. The two terminal heights become , and all other heights belong to .
The lower-terminal change is illustrated in figure 2.


FIGURE 2. The local lower boundary in theorem 3.2, before the final upward translation. Every height-0 bar ends at or before c, and the bar of x ends at c. Every edge incident with t other than tx lies in a column strictly to the right of c. The bar of t can therefore be placed at height -1, with its incident edges reconnected in their original columns. The upper boundary is omitted.
After theorem 3.2, the distance between the terminal bars can be increased by inserting a horizontal strip at a height containing no bar and extending the edges that cross it. Every nonterminal bar remains at least one unit from both the upper and lower boundaries, allowing the component to fit between any two terminal heights with sufficiently large separation.
3.3. The initial edge and parallel composition. For one edge, use two bars spanning at heights 0, 4 and an edge in column 1/2. All five conditions hold.
Consider an edge component with at least one attached vertex. Its parallel branches are the direct edge and the series components in (8). Order these branches as so that
Z. SABAEI, F. EMAMI, AND Y. TOUSINEJAD
, where . Let be the height of the recursively constructed representation of , and define
(12)
Increase the height of to H by theorem 3.1. Denote its terminals by s, t.
For every , apply theorem 3.2 to . By (12) and (B3),
(13)
Increase its terminal separation to , place it in a disjoint horizontal interval to the right of , and identify its lower and upper terminal bars with those of , respectively. Extend the resulting two terminal bars to a new right boundary beyond all component rectangles.
Every added nonterminal bar has height in , so the extended terminal bars meet no added nonterminal bar or nonincident edge. Inside each new rectangle they coincide with its original terminal bars, and between rectangles they pass through empty gaps. Different rectangles have disjoint edge columns. Thus (B1) and (B2) hold.
No added bar enters or , and the terminal heights do not change, proving . If , no added bar is below and every added edge incident with has its column strictly to the right of the rectangle for . Therefore remains valid. The argument for is identical. This proves all five conditions for the parallel composition, including its direct terminal edge, which occurs once. The case with both terminals on the boundary is shown in figure 3(a).
3.4. Series composition. Let be a series component with terminals . By exchanging the terminal names if necessary, assume . We keep the recursively constructed representation of with above . Denote its height by . The other terminal ordering follows by vertical reflection.
3.4.1. The smaller component is one edge. Suppose that , and let . Keep the height and set . Choose a new column and a new right boundary . Extend the bar of to end at , introduce
(14)
and represent xt by the vertical segment in column c. Extend the bar of s to .
The new edge has length 1, and all new parts lie to the right of the rectangle for , so (B1)–(B3) hold. If , its only neighbor is at height 0, whose bar ends at ; all other height-0 bars end before . Thus (10) holds. If , no lower condition is required. The upper condition remains valid because is below height , and neither its extension nor the new edge changes any bar at height or any edge incident with .
The case is illustrated in figure 3(b).
3.4.2. The smaller component has attached vertices. Suppose now that . Let be the vertices attached directly to , where , and define
(15)
By (8),
(16)
The vertices are pairwise nonadjacent, since each was attached to xt and no step adds an edge between two existing vertices.
Recursively construct bar representations of all , , denote their heights by , , and define
(17)
(a) Parallel composition

(b) An edge in series

FIGURE 3. Two composition steps. In (a), the corresponding terminal bars of a largest branch and a released branch are merged, and the direct edge st occupies a separate column. The shaded middle region of contains its nonterminal bars, with unit margins at the top and bottom. The case is shown. In (b), an edge is added in series when , placing t at height 1 without increasing the height . Shaded rectangles represent components; their internal bars and edges are omitted.
Increase the representation of to height . Let and choose
(18)
Then
(19)
Apply theorem 3.2 to each , , orienting below . For , (17) and (19) give
(20)
Thus each released component can be enlarged to the required terminal separation. Place between heights , and between heights , .
Choose disjoint horizontal intervals in the order
(21)
Choose a column in the central gap. Merge the copies of the bar of in , extending the resulting bar to end at . Merge the copies of the bar of in , extending the result leftward to . Represent by the vertical segment in column between heights 0, 1. For each , join the two copies of the bar of across the interval between and . Finally extend the bars of to a new right boundary beyond all the rectangles. The arrangement is illustrated in figure 4.
We check the newly extended bars and the new edge. By (21), the bar of passes between its own rectangles only over rectangles , with . Their top heights satisfy by (19). All rectangles with , as well as the rectangle for , lie outside this extension. Hence the extended bar meets no nonincident bar or edge. The extended bars of different have distinct heights.
The bar of crosses the new rectangles only along the lower terminal bars of the . Every other bar there is at least one unit higher. The corresponding statement holds for and the . A bar inside an may be at the same height as , but it lies strictly left of , where the bar of does not extend. Similarly, a bar inside a at the height of lies strictly right of . Between rectangles, the extended bars cross empty gaps. The edge lies in a fresh column between heights 0, 1, whereas all bars crossing the central gap at higher levels have heights greater than . Since (17) gives , these bars do not meet . The height of is at least , and every new rectangle ends below , so extending the bar of is also valid.
Z. SABAEI, F. EMAMI, AND Y. TOUSINEJAD

FIGURE 4. The remaining series step for , and . The order of the is reversed, so the bar of passes above every rectangle between and . The highlighted interval has height 1 and contains all three heights from (18). Its vertical scale is enlarged for clarity. Each shaded rectangle represents a whole component, with internal bars and edges omitted; the segment in column represents the new edge .
Every edge inherited from a child still has endpoint-height difference at least 1, while the new edge has difference 1. All columns remain distinct because child rectangles have disjoint horizontal intervals and column is new. The rectangle for still has bars at heights 0, . This proves (B1). Only reach the new right boundary, proving (B2).
For (B3), the terminal heights have the required values by (18). A nonterminal bar inside a released child lies at least one unit above its lower terminal and at least one unit below its upper terminal. Together with (19), this excludes new bar heights in and .
If , then . Every height-0 bar belongs to the representation of or is part of the merged bar of , so it ends at or before . The bar of ends at . All other edges incident with belong to the , have columns strictly greater than , and join to bars above it. Therefore (10) holds. If , no lower condition is required. Finally, no new bar is at height , and no new edge is incident with . Thus (11) remains valid, completing the construction.
3.5. The height bound
Proposition 3.3. Every edge component and every series component with edges has a representation satisfying (B1)–(B5) with height at most .
Proof. For positive integers m, define
(22)
We use strong induction on m. The one-edge representation has height . In each recursive step, the chosen largest component has fewer than m edges and contributes its height without an additive term.
For a parallel composition, every branch other than has at most edges, and its contribution to the maximum in (12) has an additive term of 4. In a series step with one edge, the height does not increase. In the remaining series step, let and . Then
(23)
Thus every term of the form or in (17) comes from a component with at most edges.
For , let . Then
The function f is nondecreasing. By the induction hypothesis and (12), (17), (23) and (24), every resulting height is at most
(25)
This completes the induction.
Proof of theorem 1.1. The initial edge component is itself. By (1) and theorem 3.3, it has a bar representation of height at most , with endpoint-height difference at least 1 along every edge. Both conclusions of theorem 1.1 follow from theorem 2.2.
4. CONSEQUENCES AND THE ROLE OF THE HEIGHTS
We first deduce the lower bound from the known construction in [4], without repeating its geometric proof. Let be a triangle, whose three edges are created at stage 0. At each stage , add five vertices to every edge created at stage , each adjacent to both endpoints of that edge. Then
(26)
For an integer , let . The proof of Theorem 1 in the conference version of [4] gives
(27)
If F is a subgraph of G and has at least one edge, restricting a drawing to F gives
(28)
The inequality holds for integers by induction, since . Therefore
(29)
where the last inequality follows from (27) and (28) for , and from for .
Proof of theorem 1.2. For , define
(30)
If , the lower bound follows from . If , then (26) and (30) give
(31)
Repeatedly add a new vertex whose only neighbors are the two endpoints of an existing edge until the graph has vertices. The result is a 2-tree containing , so (28) and (29) imply . The upper bound is theorem 1.1, proving (5). The two bounds have logarithmic order, so .
Corollary 4.1. Let G be a graph with vertices, at least one edge, and treewidth at most 2. Then
Proof. Complete G to a 2-tree on the same vertex set, and apply theorem 1.1 and (28). ☐
Z. SABAEI, F. EMAMI, AND Y. TOUSINEJAD
The construction controls the difference between the heights of adjacent bars, rather than the number of distinct heights between them. In (18), arbitrarily many nonadjacent vertices have distinct heights in an interval of length less than 1. Their bars overlap in horizontal projection, so identifying these heights would make the bars intersect. However, replacing the distinct bar heights by consecutive integer levels while preserving their order need not give logarithmic edge span. In the series construction, the heights of and lie below and above all heights , respectively, so this replacement gives the edge span at least . Thus the logarithmic geometric height bound does not establish logarithmic edge span in a weakly leveled drawing. This is consistent with the lower bounds in [1].
All coordinates in the bar construction can be chosen rationally. The initial representation has rational coordinates, and every recursive step preserves this possibility. In particular, the heights in (18) are rational whenever is rational, and bar endpoints, edge columns, and heights at which strips are inserted can also be chosen rationally. The limit in (7) establishes the upper bound on . For every , a sufficiently small positive gives a planar straight-line drawing with ratio less than the bound in theorem 1.1 plus . No bound on coordinate precision or drawing area is given.
Acknowledgements. Yasmin Tousinejad was partially supported by the Wallenberg AI, Autonomous Systems and Software Program (WASP) funded by the Knut and Alice Wallenberg Foundation.
REFERENCES
[1] M. A. Bekos, G. Da Lozzo, F. Frati, S. Gupta, P. Kindermann, G. Liotta, I. Rutter and I. G. Tollis, Weakly leveled planarity with bounded span, Theoretical Computer Science 1069 (2026), article 115811. doi:10.1016/j.tcs.2026.115811. Preprint arXiv:2409.01889v2 (2024), Corollary 44 and Section 6.
[2] S. N. Bhatt and S. S. Cosmadakis, The complexity of minimizing wire lengths in VLSI layouts, Information Processing Letters 25(4) (1987), 263–267. doi:10.1016/0020-0190(87)90173-6.
[3] T. Biedl, Small drawings of outerplanar graphs, series-parallel graphs, and other planar graphs, Discrete & Computational Geometry 45 (2011), 141–160. doi:10.1007/s00454-010-9310-z.
[4] V. Blažej, J. Fiala and G. Liotta, On edge-length ratios of partial 2-trees, International Journal of Computational Geometry & Applications 31 (2021), no. 2–3, 141–162. doi:10.1142/S0218195921500072. Conference-version preprint, On the edge-length ratio of 2-trees, arXiv:1909.11152v3 (2020), Theorem 1 and Corollary 3.
[5] M. Borrazzo and F. Frati, On the planar edge-length ratio of planar graphs, Journal of Computational Geometry 11 (2020), no. 1, 137–155. doi:10.20382/jocg.v11i1a6.
[6] J. Chen, A. Jiang, I. A. Kanj, G. Xia and F. Zhang, Separability and topology control of quasi unit disk graphs, Wireless Networks 17(1) (2011), 53–67. doi:10.1007/s11276-010-0264-0.
[7] G. Di Battista, P. Eades, R. Tamassia and I. G. Tollis, Graph Drawing: Algorithms for the Visualization of Graphs, Prentice-Hall, 1999.
[8] P. Eades and N. C. Wormald, Fixed edge-length graph drawing is NP-hard, Discrete Applied Mathematics 28(2) (1990), 111–134. doi:10.1016/0166-218X(90)90110-X.
[9] S. Lazard, W. J. Lenhart and G. Liotta, On the edge-length ratio of outerplanar graphs, Theoretical Computer Science 770 (2019), 88–94. doi:10.1016/j.tcs.2018.10.002.
[10] J. Pach and G. Tóth, Monotone drawings of planar graphs, Journal of Graph Theory 46 (2004), no. 1, 39–47. doi:10.1002/jgt.10168. Revised version arXiv:1101.0967 (2011), Theorem 2.
AMIRKABIR UNIVERSITY OF TECHNOLOGY
Email address: zsabaei72@gmail.com
CONCORDIA UNIVERSITY
Email address: fatima.emami13@gmail.com
DEPARTMENT OF MATHEMATICS, UPPSALA UNIVERSITY
Email address: yasmin.tousinejad@math.uu.se