Abstract 1 Introduction 2 The construction 3 Conclusion References

1-Planar Unit Distance Graphs with More Edges Than Matchstick Graphs

Eliška Červenková ORCID Department of Applied Mathematics, Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic Jan Kratochvíl ORCID Department of Applied Mathematics, Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic
Abstract

Matchstick graphs are graphs that allow plane embedding with straight edges of equal length. One-planar unit distance graphs are graphs that allow a drawing in the plane in which all edges are straight-line segments of equal length and every edge crosses at most one other edge. The maximum number of edges of a matchstick graph (1-planar unit distance graph) of order n is denoted by u0(n) (u1(n), respectively). It is known that u0(n)=3n12n3 holds for every n. At GD’24, Gehér and Tóth proved a slightly weaker upper bound on u1(n), but noted that no 1-planar unit distance graph G with more than u0(|V(G)|) vertices was known. They asked if u1(n)=u0(n) holds for every n. We give a negative answer to this question in a much stronger way. We show that u1(n)>u0(n) for every n16135. Furthermore, we show that the gap between u1(n) and u0(n) can be arbitrarily large by proving that for n large enough with respect to a constant α<134, u1(n)u0(n)αn4.

Keywords and phrases:
planar graph, unit distance graph, matchstick graph, 1-planar graph
Copyright and License:
[Uncaptioned image] © Eliška Červenková and Jan Kratochvíl; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Mathematics of computing Graph theory
Acknowledgements:
We thank the anonymous reviewers for valuable comments that helped increase the readability of the article.
Funding:
Both authors gratefully acknowledge support by grant No. 23-04949X of the Czech Science Foundation (GAČR).
Editors:
Vida Dujmović and Fabrizio Montecchiani

1 Introduction

We consider unit distance geometric graphs, i.e., graphs drawn in the plane in such a way that edges are drawn as straight line segments of equal (unit) length. As usual, vertices are embedded as points, and no vertex may lie on an edge, unless being one of its end-vertices. We are interested in the following two subclasses of such graphs. Matchstick graphs are plane unit distance graphs, i.e., graphs that allow a unit distance embedding with no edge crossings. A more general class is formed by 1-planar unit distance graphs, which allow unit distance drawings such that any edge is crossed by at most one other edge.

Matchstick graphs were introduced by Harborth in 1981 [4]. He conjectured that a matchstick graph on n vertices has at most 3n12n3 edges. As an answer to the problem of Reutter [9], he actually proved his conjecture in the case when the distance of any two vertices of the graph is greater than or equal to 1 already in 1974 [3]. In the same paper, Harborth also showed that the bound is tight by constructing, for every positive integer n, a matchstick graph on n vertices that achieves this upper bound. However, the conjecture itself has only recently been proved by Lavollée and Swanepoel [8]. Although this answers completely the question of the maximum number of edges of a matchstick graph, there are many other open research questions. Quite a lot of attention has been paid to regular matchstick graphs [1], [5], [6], [7]. To complete the picture, let us mention the article by Salvia [10], which serves as a catalog of small examples, as well as the articles by Winkler [11] and by Winkler, Dinkelacker, and Vogel [12], [13], [14], [15], which provide an overview of the diversity of matchstick graphs.

Gehér and Tóth [2] considered 1-planar unit distance graphs. They observed an interesting phenomenon with regard to the maximum possible number of edges. Although general 1-planar n-vertex graphs (i.e., when the lengths of the edges are not required to be equal, and the edges need not be straight) may have as many as 4n8 edges compared to planar graphs having at most 3n6 edges, for unit distance graphs the coefficient of the linear term is the same. They showed that every 1-planar unit distance graph with n vertices has at most 3n110n4 edges. At the same time, they pointed out that no construction of a 1-planar unit distance graph with more edges than a matchstick graph on the same number of vertices was known. They denoted by u0(n) (u1(n)) the maximum number of edges of a matchstick (1-planar unit distance, respectively) graph on n vertices, and they have explicitly asked this open question.

Question [Problem 12 in [2]].

Is it true that u0(n)=u1(n) for every n?

We first provide a negative answer to this question by exhibiting the graph depicted in Fig. 2 middle. This 1-planar unit distance graph has 31 vertices and 74 edges, while u0(31)=73. The main goal of this paper is to strengthen this answer by showing that if the number of vertices is large enough, 1-planar unit distance graphs always beat matchstick graphs in the number of edges.

Theorem 1.

For every n16135, u1(n)>u0(n).

We further show that the gap between u0(n) and u1(n) widens as n tends to infinity.

Theorem 2.

For any constant α<134=.7598 and for every n sufficiently large (with respect to α), u1(n)u0(n)αn4.

In the next sections, we prove these theorems using an explicit construction. In both cases, we first construct an infinite sequence of 1-planar unit distance graphs with large numbers of edges. These graphs arise as a combination of two patterns: a duplicated square grid in the core part of the graph, and two triangular grids attached to the top and bottom sides of the core. The sizes of the grids are carefully chosen to balance the trade-offs of the boundary effect of the two types of grids. The numbers of vertices of these graphs will form a sparse subset of the set of positive integers. In the second step, we show how to fill the gaps by fine-tuning the first construction by adding a few (some of them partial) layers to the triangular grids in order not to lose too much from the surplus of the number of edges before reaching the next graph in the main sequence.

2 The construction

2.1 Small cases

On n=6 vertices, there are three non-isomorphic matchstick graphs with u0(6)=9 edges (see Fig. 1). There exists another non-isomorphic unit distance graph F depicted in Fig. 2 left. Note that this triangular prism graph is not a matchstick graph. However, it clearly is a 1-planar unit distance graph, as can be seen from drawing its vertices as points with coordinates (0,0),(1,0),(0,1),(1,1),(12,32),(12,1+32). Concatenating five overlapping copies of F and adding a top and a bottom path of equilateral triangles yields the ad hoc graph depicted in Fig. 2 middle. This is the smallest example of a 1-planar unit distance graph with more edges than a matchstick graph that we know of. It has 31 vertices and 74 edges, while u0(31)=933723=9319.2=73.

Refer to caption
Figure 1: Three non-isomorphic matchstick graphs with 6 vertices and 9 edges.
Refer to caption
Refer to caption
Refer to caption
Figure 2: The triangular prism F (left), a 1-planar unit distance graph with 31 vertices and 74 edges (middle) and a path Tn of triangles (right).

2.2 Putting the prisms together

The graph from Fig. 2 middle contains all the ingredients of the general construction. The five copies of the prism graph F with the additional horizontal edges form a 1×5 square grid coupled with a shifted 1×4 one. A path T4 of triangles is added on the top, and a path T5 on the bottom (a path of triangles Tn is depicted in Fig. 2 right). The general construction is as follows. We build graphs Gt,k,a, parameterized by three parameters: k refers to the number of k+1 copies of the elementary building block F concatenated in a row, t is the number of such rows stacked on top of each other (to be precise, half of them stacked on top of each other, and the other half added below them in a reflection along the horizontal axis), and a is the number of paths of triangles stacked above (and below) the rows of F’s. We will then tune the parameters k and a to achieve the best comparison with the maximum possible number of edges of a matchstick graph on the same number of vertices. We will show that the “well tuned” graphs “win” over u0(n) by t edges. Of course, the numbers of vertices given by this construction are very specific.

Let us now describe the construction in full detail. Note that t will always be even. To construct the graph Gt,k,a, begin with k+1 copies of F, denoted by F1,i for i{1,2,,k+1}, with the corresponding vertex sets {vj1,i:j=1,2,,6}. The larger graph F(1×k+1) is formed by identifying the following vertices: v21,i=v11,i+1 and v41,i=v31,i+1 for i{1,2,k}. Additionally, for each i{1,2,,k}, we include the edges v51,iv51,i+1 and v61,iv61,i+1.

All edges in F(1×k+1) are represented by unit-length line segments. The only intersecting edges are of the form v21,iv41,i and v51,iv51,i+1 for i{1,2,,k}, and v51,jv61,j and v31,jv41,j for j{1,2,,k+1}. Hence, F(1×k+1) remains a 1-planar unit distance graph.

Refer to caption
Refer to caption
Figure 3: The graphs F(1×k+1) (left) and F(2×k+1) (right).

As previously stated, the graph F contains 6 vertices and 9 edges. Each additional copy of F contributes 4 new vertices and 10 edges because of the identifications made during the construction. Therefore, the graph F(1×k+1) consists of 6+4k vertices and 9+10k edges.

In the next step, add a copy of F(1×k+1) with corresponding vertices vj2,i for j{1,,6},i{1,2,,k+1} and identify the vertices v12,i=v31,i, v22,i=v41,i, and v52,i=v61,i. Denote the resulting graph by F(2×k+1). This procedure is referred to as adding a row to F(1×k+1). It adds 3+2k vertices and 6+6k edges.

Repeat the above-described step (t21) times. Since each step adds a new row, for the resulting graph F(t2×k+1), it holds that

|V(F(t2×k+1))|=6+4k+(t21)(3+2k)=3+2k+3t2+kt, (1)
|E(F(t2×k+1))|=9+10k+(t21)(6+6k)=3+4k+3t+3kt.

In the next step, attach a trapezoid consisting of a paths of triangles (the bottom one being Tk and the top one being Tka+1) to the graph F(t2×k+1) in such a way that the bottom side of the trapezoid coincides with the upper horizontal side of F(t2×k+1). Denote the resulting graph by Ft,k,a.

Refer to caption
Refer to caption
Figure 4: Illustration of a trapezoid consisting of 3 paths of triangles (left) and a graph Ft,k,a for t=6 and a=2 (right).

It holds that

|V(Ft,k,a)|=|V(F(t2×k+1))|+=kka+1=3+2k+3t2+kt+(2ka+1)a2==ka(a1)a2+3+2k+3t2+kt, (2)
|E(Ft,k,a)|=|E(F(t2×k+1))|+=kka+1(31)=3+4k+3t+3kt+3=kka+1a==3+4k+3t+3kt+3(2ka+1)a2a==3ak+3a2+a2+3+4k+3t+3kt.

In the final step, the graph Gt,k,a is obtained by reflecting Ft,k,a across a horizontal axis and identifying the corresponding horizontal sides of length k+1.

Refer to caption
Figure 5: A graph G6,11,2.
Proposition 3.

For every three positive integers a,k and t, where t is even, Gt,k,a is a 1-planar unit distance graph with 2kaa2+a+4+3k+3t+2tk vertices and 6ka3a2+a+5+7k+6t+6kt edges.

Proof.

A 1-planar unit distance drawing of Gt,k,a can be built along the lines of its definition. For the numbers of vertices and edges, note that Gt,k,a is built by joining two copies of Ft,k,a (the original and the flipped one) and these two copies share k+2 vertices and k+1 edges. Hence, |V(Gt,k,a)|=2|V(Ft,k,a)|(k+2)=2kaa2+a+4+3k+3t+2tk and |E(Gt,k,a)|=2|E(Ft,k,a)|(k+1)=6ka3a2+a+5+7k+6t+6kt.

Finally, we choose a specific dependence of k on a and t, namely, k=2a+t+1, and set Ht,a=Gt,2a+t+1,a. It is not important for the main result, but we note that this choice optimizes the gain of |E(Gt,k,a)| over u0(|V(Gt,k,n)|). This can be shown by standard methods in calculus. In the sequel, we set n(t,a)=|V(Ht,a)|=3a2+9a+6at+7+8t+2t2. Note that |E(Ht,a)|=9a2+21a+18at+12+19t+6t2.

Proposition 4.

For every even positive integer t and every at2, |E(Ht,a)|u0(n(t,a))t.

Proof.

For a=t2, we have

|V(Ht,t2)|=n(t,t2)=3t4+6t3+11t2+8t+7, (3)
|E(Ht,t2)|=9t4+18t3+27t2+19t+12=3n(t,t2)(6t2+5t+9)

and

|E(Ht,t2)|u0(n(t,t2))=3n(t,t2)(6t2+5t+9)3n(t,t2)12n(t,t2)33n(t,t2)(6t2+5t+9)(3n(t,t2)12n(t,t2)3)==12n(t,t2)3(6t2+5t+9)>t1. (4)

The last inequality follows from

12n(t,t2)3>6t2+6t+8

which is equivalent to

12n(t,t2)3 =36t4+72t3+132t2+96t+81>
>36t4+72t3+(36+96)t2+96t+64=(6t2+6t+8)2.

Denote

ft(x) =9x2+21x+18xt+12+19t+6t2
(3(3x2+9x+6xt+7+8t+2t2)12(3x2+9x+6xt+7+8t+2t2)3)=
=12(3x2+9x+6xt+7+8t+2t2)3(6x+5t+9)

for a real variable x. Note that |E(Ht,a)|u0(n(t,a))ft(a) for every positive integer a. We claim that ft(x) is increasing for x>0 for every t>0. This follows from the first derivative in x. A simple calculation shows that

dftdx =6+1272x+108+72t36x2+108x+72xt+81+96t+24t2>0 (5)

is equivalent to 12t2+12t>0, which is true for all t>0.

Since ft(x) is increasing and ft(t2)>t1 as we have seen above, we have

|E(Ht,a)|u0(n(t,a))ft(a)>t1 (6)

for every at2. And since |E(Ht,a)|u0(n(t,a)) is an integer, we get

|E(Ht,a)|u0(n(t,a))t (7)

for every at2.

Corollary 5.

For every integer t, there are infinitely many values n such that u1(n)u0(n)t. Hence lim supn(u1(n)u0(n))=.

2.3 Proof of Theorem 1

In this subsection, we will show how to fill the gaps between consecutive n(t,a) and n(t,a+1) for which we know, by Proposition 4, that u1(n(t,a))>u0(n(t,a)) and u1(n(t,a+1))>u0(n(t,a+1)). For each n{n(t,a)+1,,n(t,a+1)1}, we will construct a graph Lt,n by adding nn(t,a) vertices to Ht,a (see the detailed description below). The following observation will be quite useful to argue about the gain of Lt,n over u0(n).

Lemma 6.

Let G0,G1,,Gn be a sequence of graphs such that for every i=1,,n, Gi is obtained from Gi1 by adding a vertex xi of degree 2 or 3. Then |E(Gn)|u0(|V(Gn)|)|E(G0)|u0(|V(G0)|)k, where k=|{i:degGixi=2}|.

Proof.

Let us denote by ni=n0+i the number of vertices of Gi, i=0,1,,n. Observe that

u0(ni)=3n0+3i12ni33n0+3i12n03u0(n0)+3i.

Adding the vertex xi to Gi1 adds 2 or 3 edges, depending on degGixi. Thus,

|E(Gn)|=|E(G0)|+3nk

for k=|{i:degGixi=2}|. Putting these two together, we obtain

|E(Gn)|u0(nn)=|E(G0)|+3nku0(nn)
|E(G0)|+3nku0(n0)3n=|E(G0)|u0(n0)k.

Proof of Theorem 1.

Fix an even integer t,t8 and examine two consecutive graphs Ht,a and Ht,a+1. For n{|V(Ht,a)|,|V(Ht,a+1)|}, our construction guarantees a graph G on n vertices such that |E(G)|u0(n)t. Since the goal is to extend the construction to cover values of n strictly between |V(Ht,a)| and |V(Ht,a+1)|, we recall the number of vertices in both graphs explicitly:

|V(Ht,a)|=3a2+9a+6at+7+8t+2t2, (8)
|V(Ht,a+1)|=3a2+15a+19+6at+14t+2t2.

The number of vertices that separate Ht,a from Ht,a+1 is

|V(Ht,a+1)||V(Ht,a)|=3a2+15a+19+6at+14t+2t2 (9)
(3a2+9a+6at+7+8t+2t2)=6a+6t+12.

The geometric structure of Ht,a, which has a perimeter of the shape of an octagon with horizontal sides of length a+1+t, will be further exploited. Attaching a path of triangles T to a horizontal side of length contributes vertices and 31 edges. This implies that by adding these vertices one by one, we add 1 vertex of degree 2 and then 1 vertices of degree 3. By Lemma 6, such an addition of vertices decreases the edge surplus by at most one.

Suppose further that at2. Then at2>2t, as t8 is assumed. Then attach paths of triangles Ta+1+t, Ta+t and Ta+t1 to the upper horizontal side of Ht,a, and Ta+1+t, Ta+t, Ta+t1 and Ta+t2 to the bottom horizontal side of Ht,a. This operation adds:

2(a+1+t+(a+t)+(a+t1))+(a+t2)=7a2+7t=
=6a+a2+6t+t6a2+6t+3t>6a+6t+13

vertices, which is more than enough to cover the gap computed in (9).

Assume that an integer n{|V(Ht,a)|,,|V(Ht,a+1)|} is given. Construct the graph Lt,n by adding the rows attached to Ht,a from above and below, until the number of vertices is n (the last row added may remain unfinished). The resulting graph is shown in Fig. 6.

Refer to caption
Figure 6: A construction of a graph Lt,n.

In total, we have added at most 7 vertices of degree 2, the remaining ones were all of degree 3. Lemma 6 implies that

|E(Lt,n)|u0(n)|E(Ht,a)|u0(|V(Ht,a)|)7t71 (10)

as t8 is assumed.

This implies that for every even integer t,t8, for all n|V(Ht,t2)|, there exists a graph Lt,n on n vertices satisfying

|E(Lt,n)|u0(n)1.

Substituting the smallest values for a and t, which means t=8 and a=64, we get

|V(H8,64)|=3642+964+6648+7+88+282=16135.

Therefore, for all n16135, there exists a 1-planar unit distance graph on n vertices with more edges than any matchstick graph on the same number of vertices has.

The proof has the following useful corollary.

Corollary 7.

For every even positive integer t8 and for every nn(t,t2), u1(n)u0(n)t7.

Proof.

If nn(t,t2), then n{n(t,a),,n(t,a+1)1} for some at2. Then (10) implies that u1(n)u0(n)t7.

2.4 Proof of Theorem 2

In this subsection, we show a lower bound on the growth rate of the surplus u1(n)u0(n) as n tends to infinity. We utilize the construction from the previous subsection. Again, we first show that the bound from Theorem 2 holds for infinitely many isolated values of n, and then fill the gaps. Let α<134 be an arbitrary positive constant from the statement of the theorem and let β be another constant, α<β<134. The constants α and β stay fixed for the rest of this subsection. We use the notation n(t,a)=|V(Ht,a)|=3a2+9a+6at+7+8t+2t2 which was introduced in Subsection 2.2.

Proposition 8.

For sufficiently large t, we have tβn(t,t2)4.

Proof.

Extend the function n(t,t2)=3t4+6t3+11t2+8t+7, which has so far been defined only for even positive integers t, to all positive real values of t. For n=n(t,t2), Wolfram Alpha tells us (and it can then be easily checked by hand) that t can be expressed as

t=16(123n5393).

It follows that

t=n359393612βn4

holds for sufficiently large n (and hence also for sufficiently large t), as long as β<134.

Proof of Theorem 2.

Let t08 be an even integer large enough, so that

t07αβ(t0+2) and t0βn(t0,t02)4.

(Since the involved functions are monotone, it follows that

t7αβ(t+2) and tβn(t,t2)4

hold for every tt0.)

For every nn(t0,t02), there is an even integer t such that n(t,t2)n<n(t+2,(t+2)2). Then, using this t, it follows from Corollary 7 and Proposition 8 that

u1(n)u0(n)t7αβ(t+2)αββn(t+2,(t+2)2)4>αn4.

3 Conclusion

We have answered in negative the question of Gehér and Tóth, who asked if u1(n)=u0(n) for every n by showing that for every large enough n, the difference u1(n)u0(n) is at least as large as αn4 for any constant α<134. It is interesting that a function of the same growth rate appears in the upper bound for u1(n) proven by Gehér and Tóth. In fact, their result can be reformulated as 3nu1(n)n410. Is this a coincidence?

All our examples of 1-planar unit distance graphs are non-planar. This invokes the following open problem (which seems to have been asked during the discussion at Graph Drawing ’24).

Problem 1.

Does there exist a planar graph which has a 1-planar unit distance drawing and which has more edges than any matchstick graph on the same number of vertices?

Also all our examples allow for 1-planar unit distance drawings in which only vertical and horizontal edges cross. Define u0.5(n) as the maximum number of edges of such an n-vertex graph.

Problem 2.

Prove an upper bound on u0.5(n) better than 3ncn4.

Problem 3.

Is u0.5(n)<u1(n) for some n? For infinitely many n’s?

References

  • [1] Aart Blokhuis. Regular finite planar maps with equal edges, 2019. doi:10.48550/arXiv.1401.1799.
  • [2] Panna Gehér and Géza Tóth. 1-Planar Unit Distance Graphs. In Stefan Felsner and Karsten Klein, editors, 32nd International Symposium on Graph Drawing and Network Visualization (GD 2024), volume 320 of Leibniz International Proceedings in Informatics (LIPIcs), pages 6:1–6:9. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.GD.2024.6.
  • [3] Heiko Harborth. Lösung zu Problem 664A. Elem. Math., 29:14–15, 1974.
  • [4] Heiko Harborth. Point sets with equal numbers of unit-distance neighbors (Abstract). In Discrete Geometry, Oberwolfach, Tagungsbericht 31/1981, pages 11–12. Mathematisches Forschungsinstitut Oberwolfach, 1981.
  • [5] Sascha Kurz. A lower bound for 4-regular planar unit distance graphs. Geombinatorics Quarterly, 21:63–72, 2011. doi:10.48550/arXiv.1401.4377.
  • [6] Sascha Kurz and Giuseppe Mazzuoccolo. 3-regular matchstick graphs with given girth. Geombinatorics Quarterly, 19:156–173, 2009. doi:10.48550/arXiv.1401.4360.
  • [7] Sascha Kurz and Rom Pinchasi. Regular matchstick graphs. The American Mathematical Monthly, 118:264–267, 2011. doi:10.4169/amer.math.monthly.118.03.264.
  • [8] Jérémy Lavollée and Konrad Swanepoel. A tight bound for the number of edges of matchstick graphs. Discrete Computational Geometry, 72:1530–1544, 2023. doi:10.1007/s00454-023-00530-z.
  • [9] O. Reutter. Problem 664A. Elem. Math., 27:19, 1972.
  • [10] Raffaele Salvia. A catalog of matchstick graphs, 2015. doi:10.48550/arXiv.1303.5965.
  • [11] Mike Winkler. A catalog of 4-regular matchstick graphs with 63 - 70 vertices, 2017. doi:10.48550/arXiv.1705.04715.
  • [12] Mike Winkler, Peter Dinkelacker, and Stefan Vogel. Minimal completely asymmetric (4; n)-regular matchstick graphs, 2016. doi:10.48550/arXiv.1609.06972.
  • [13] Mike Winkler, Peter Dinkelacker, and Stefan Vogel. New minimal (4; n)-regular matchstick graphs. Geombinatorics Quarterly, 27:26–44, 2017. doi:10.48550/arXiv.1604.07134.
  • [14] Mike Winkler, Peter Dinkelacker, and Stefan Vogel. On the existence of 4-regular matchstick graphs, 2017. doi:10.48550/arXiv.1705.00293.
  • [15] Mike Winkler, Peter Dinkelacker, and Stefan Vogel. A 3-regular matchstick graph of girth 5 consisting of 54 vertices. Geombinatorics Quarterly, 29:116–121, 2019. doi:10.48550/arXiv.1903.04304.