1-Planar Unit Distance Graphs with More Edges Than Matchstick Graphs
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 is denoted by (, respectively). It is known that holds for every . At GD’24, Gehér and Tóth proved a slightly weaker upper bound on , but noted that no 1-planar unit distance graph with more than vertices was known. They asked if holds for every . We give a negative answer to this question in a much stronger way. We show that for every . Furthermore, we show that the gap between and can be arbitrarily large by proving that for large enough with respect to a constant , .
Keywords and phrases:
planar graph, unit distance graph, matchstick graph, 1-planar graphCopyright and License:
2012 ACM Subject Classification:
Mathematics of computing Graph theoryAcknowledgements:
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 MontecchianiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
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 vertices has at most 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 , a matchstick graph on 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 -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 edges compared to planar graphs having at most edges, for unit distance graphs the coefficient of the linear term is the same. They showed that every 1-planar unit distance graph with vertices has at most 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 () the maximum number of edges of a matchstick (1-planar unit distance, respectively) graph on vertices, and they have explicitly asked this open question.
Question [Problem 12 in [2]].
Is it true that for every ?
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 . 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 , .
We further show that the gap between and widens as tends to infinity.
Theorem 2.
For any constant and for every sufficiently large (with respect to ), .
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 vertices, there are three non-isomorphic matchstick graphs with edges (see Fig. 1). There exists another non-isomorphic unit distance graph 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 . Concatenating five overlapping copies of 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 .



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 with the additional horizontal edges form a square grid coupled with a shifted one. A path of triangles is added on the top, and a path on the bottom (a path of triangles is depicted in Fig. 2 right). The general construction is as follows. We build graphs , parameterized by three parameters: refers to the number of copies of the elementary building block concatenated in a row, 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 is the number of paths of triangles stacked above (and below) the rows of ’s. We will then tune the parameters and 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 by 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 will always be even. To construct the graph , begin with copies of , denoted by for , with the corresponding vertex sets . The larger graph is formed by identifying the following vertices: and for . Additionally, for each , we include the edges and .
All edges in are represented by unit-length line segments. The only intersecting edges are of the form and for , and and for . Hence, remains a 1-planar unit distance graph.


As previously stated, the graph contains vertices and edges. Each additional copy of contributes new vertices and edges because of the identifications made during the construction. Therefore, the graph consists of vertices and edges.
In the next step, add a copy of with corresponding vertices for and identify the vertices , , and . Denote the resulting graph by . This procedure is referred to as adding a row to . It adds vertices and edges.
Repeat the above-described step times. Since each step adds a new row, for the resulting graph , it holds that
| (1) | ||||
In the next step, attach a trapezoid consisting of paths of triangles (the bottom one being and the top one being ) to the graph in such a way that the bottom side of the trapezoid coincides with the upper horizontal side of . Denote the resulting graph by .


It holds that
| (2) | ||||
In the final step, the graph is obtained by reflecting across a horizontal axis and identifying the corresponding horizontal sides of length .
Proposition 3.
For every three positive integers and , where is even, is a 1-planar unit distance graph with vertices and edges.
Proof.
A 1-planar unit distance drawing of can be built along the lines of its definition. For the numbers of vertices and edges, note that is built by joining two copies of (the original and the flipped one) and these two copies share vertices and edges. Hence, and .
Finally, we choose a specific dependence of on and , namely, , and set . It is not important for the main result, but we note that this choice optimizes the gain of over . This can be shown by standard methods in calculus. In the sequel, we set . Note that .
Proposition 4.
For every even positive integer and every , .
Proof.
For , we have
| (3) | ||||
and
| (4) |
The last inequality follows from
which is equivalent to
Denote
for a real variable . Note that for every positive integer . We claim that is increasing for for every . This follows from the first derivative in . A simple calculation shows that
| (5) |
is equivalent to , which is true for all .
Since is increasing and as we have seen above, we have
| (6) |
for every . And since is an integer, we get
| (7) |
for every .
Corollary 5.
For every integer , there are infinitely many values such that . Hence .
2.3 Proof of Theorem 1
In this subsection, we will show how to fill the gaps between consecutive and for which we know, by Proposition 4, that and . For each , we will construct a graph by adding vertices to (see the detailed description below). The following observation will be quite useful to argue about the gain of over .
Lemma 6.
Let be a sequence of graphs such that for every , is obtained from by adding a vertex of degree 2 or 3. Then , where .
Proof.
Let us denote by the number of vertices of , . Observe that
Adding the vertex to adds 2 or 3 edges, depending on . Thus,
for . Putting these two together, we obtain
Proof of Theorem 1.
Fix an even integer and examine two consecutive graphs and . For , our construction guarantees a graph on vertices such that Since the goal is to extend the construction to cover values of strictly between and , we recall the number of vertices in both graphs explicitly:
| (8) | ||||
The number of vertices that separate from is
| (9) | ||||
The geometric structure of , which has a perimeter of the shape of an octagon with horizontal sides of length , will be further exploited. Attaching a path of triangles to a horizontal side of length contributes vertices and edges. This implies that by adding these vertices one by one, we add 1 vertex of degree 2 and then vertices of degree 3. By Lemma 6, such an addition of vertices decreases the edge surplus by at most one.
Suppose further that . Then , as is assumed. Then attach paths of triangles , and to the upper horizontal side of , and , , and to the bottom horizontal side of . This operation adds:
vertices, which is more than enough to cover the gap computed in (9).
Assume that an integer is given. Construct the graph by adding the rows attached to from above and below, until the number of vertices is (the last row added may remain unfinished). The resulting graph is shown in Fig. 6.
In total, we have added at most 7 vertices of degree 2, the remaining ones were all of degree 3. Lemma 6 implies that
| (10) |
as is assumed.
This implies that for every even integer , for all , there exists a graph on vertices satisfying
Substituting the smallest values for and , which means and , we get
Therefore, for all , there exists a 1-planar unit distance graph on 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 and for every , .
Proof.
If , then for some . Then (10) implies that .
2.4 Proof of Theorem 2
In this subsection, we show a lower bound on the growth rate of the surplus as 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 , and then fill the gaps. Let be an arbitrary positive constant from the statement of the theorem and let be another constant, . The constants and stay fixed for the rest of this subsection. We use the notation which was introduced in Subsection 2.2.
Proposition 8.
For sufficiently large , we have .
Proof.
Extend the function , which has so far been defined only for even positive integers , to all positive real values of . For , Wolfram Alpha tells us (and it can then be easily checked by hand) that can be expressed as
It follows that
holds for sufficiently large (and hence also for sufficiently large ), as long as .
Proof of Theorem 2.
Let be an even integer large enough, so that
(Since the involved functions are monotone, it follows that
hold for every .)
3 Conclusion
We have answered in negative the question of Gehér and Tóth, who asked if for every by showing that for every large enough , the difference is at least as large as for any constant . It is interesting that a function of the same growth rate appears in the upper bound for proven by Gehér and Tóth. In fact, their result can be reformulated as . 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 as the maximum number of edges of such an -vertex graph.
Problem 2.
Prove an upper bound on better than .
Problem 3.
Is for some ? For infinitely many ’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; )-regular matchstick graphs, 2016. doi:10.48550/arXiv.1609.06972.
- [13] Mike Winkler, Peter Dinkelacker, and Stefan Vogel. New minimal (4; )-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.
