# Matchstick graph

The unique smallest cubic matchstick graph
Harborth graph
Vertices52
Edges104
Diameter9
Girth3
Table of graphs and parameters
3-regular girth-5 matchstick graph
Vertices54
Edges81
Girth5
Table of graphs and parameters

In geometric graph theory, a branch of mathematics, a matchstick graph is a graph that can be drawn in the plane in such a way that its edges are line segments with length one that do not cross each other. That is, it is a graph that has an embedding which is simultaneously a unit distance graph and a plane graph. For this reason, matchstick graphs have also been called planar unit-distance graphs.[1] Informally, matchstick graphs can be made by placing noncrossing matchsticks on a flat surface, hence the name.[2]

## Regular matchstick graphs

Much of the research on matchstick graphs has concerned regular graphs, in which each vertex has the same number of neighbors. This number is called the degree of the graph.

Regular matchstick graphs can have degree 0, 1, 2, 3, or 4. The complete graphs with one, two, and three vertices (a single vertex, a single edge, and a triangle) are all matchstick graphs and are 0-, 1-, and 2-regular respectively. The smallest 3-regular matchstick graph is formed from two copies of the diamond graph placed in such a way that corresponding vertices are at unit distance from each other; its bipartite double cover is the 8-crossed prism graph.[2]

In 1986, Heiko Harborth presented the graph that became known as the Harborth Graph. It has 104 edges and 52 vertices, and is the smallest known example of a 4-regular matchstick graph.[3] It is a rigid graph.[4]

Every 4-regular matchstick graph contains at least 20 vertices.[5] Examples of 4-regular matchstick graphs are currently known for all number of vertices ≥ 52 except for 53, 55, 56, 58, 59, 61 and 62. The graphs with 54, 57, 65, 67, 73, 74, 77 and 85 vertices were first published in 2016. For 52, 54, 57, 60 and 64 vertices only one example is known. Of these five graphs only the one with 60 vertices is flexible, the other four are rigid.[6] [7]

It is not possible for a regular matchstick graph to have degree greater than four.[5] More strongly, every ${\displaystyle n}$-vertex matchstick graph has ${\displaystyle \Omega ({\sqrt {n}})}$ vertices of degree four or less.[8] The smallest 3-regular matchstick graph without triangles (girth ≥ 4) has 20 vertices, as proved by Kurz and Mazzuoccolo.[9] The smallest known example of a 3-regular matchstick graph of girth 5 has 54 vertices and was first presented by Mike Winkler in 2019.[10]

## Computational complexity

It is NP-hard to test whether a given undirected planar graph can be realized as a matchstick graph.[11][12] More precisely, this problem is complete for the existential theory of the reals.[13] Kurz (2011) provides some easily tested necessary criteria for a graph to be a matchstick graph, but these are not also sufficient criteria: a graph may pass Kurz's tests and still not be a matchstick graph.[14]

It is also NP-complete to determine whether a matchstick graph has a Hamiltonian cycle, even when the vertices of the graph all have integer coordinates that are given as part of the input to the problem.[15]

## Combinatorial enumeration

The numbers of distinct (nonisomorphic) matchstick graphs are known for 1, 2, 3, ... up to ten edges; they are:

1, 1, 3, 5, 12, 28, 74, 207, 633, 2008 (sequence A066951 in the OEIS)[16][17]

For instance the three different graphs that can be made with three matchsticks are a claw, a triangle graph, and a three-edge path graph.

## Special classes of graphs

Uniformity of edge lengths has long been seen as a desirable quality in graph drawing,[18] and some specific classes of planar graphs can always be drawn with completely uniform edges.

Every tree can be drawn in such a way that, if the leaf edges of the tree were replaced by infinite rays, the drawing would partition the plane into convex polygonal regions, without any crossings. For such a drawing, if the lengths of each edge are changed arbitrarily, without changing the slope of the edge, the drawing will remain planar. In particular, it is possible to choose all edges to have equal length, resulting in a realization of an arbitrary tree as a matchstick graph.[19]

Realization of a squaregraph as a matchstick graph

A similar property is true for squaregraphs, the planar graphs that can be drawn in the plane in such a way that every bounded face is a quadrilateral and every vertex either lies on the unbounded face or has at least four neighbors. These graphs can be drawn with all faces parallelograms, in such a way that if a subset of edges that are all parallel to each other are lengthened or shortened simultaneously so that they continue to all have the same length, then no crossing can be introduced. In particular it is possible to normalize the edges so that they all have the same length, and obtain a realization of any squaregraph as a matchstick graph.[20]

## Related classes of graphs

Every matchstick graph is a unit distance graph. Penny graphs are the graphs that can be represented by tangencies of non-overlapping unit circles. Every penny graph is a matchstick graph. However, some matchstick graphs (such as the eight-vertex cubic matchstick graph of the first illustration) are not penny graphs, because realizing them as a matchstick graph causes some non-adjacent vertices to be closer than unit distance to each other.

## References

1. ^ Gervacio, Severino V.; Lim, Yvette F.; Maehara, Hiroshi (2008), "Planar unit-distance graphs having planar unit-distance complement", Discrete Mathematics, 308 (10): 1973–1984, doi:10.1016/j.disc.2007.04.050, MR 2394465
2. ^ a b
3. ^ Harborth, Heiko (1994), "Match sticks in the plane", in Guy, R. K.; Woodrow, R. E. (eds.), The Lighter Side of Mathematics: Proceedings of the Eugéne Strens Memorial Conference of Recreational Mathematics and its History, Calgary, Canada, 1986, Washington, D.C.: Mathematical Association of America, pp. 281–288. As cited in:
4. ^ Gerbracht, Eberhard H.-A. (2011), "Symbol-crunching the Harborth graph", Advances in Applied Mathematics, 47 (2): 276–281, doi:10.1016/j.aam.2010.09.003, MR 2803803. For additional details see the earlier preprint in Gerbracht, Eberhard H.-A. (2006), "Minimal Polynomials for the Coordinates of the Harborth Graph", arXiv:math/0609360.
5. ^ a b Kurz, Sascha; Pinchasi, Rom (2011), "Regular matchstick graphs", American Mathematical Monthly, 118 (3): 264–267, arXiv:1401.4372, doi:10.4169/amer.math.monthly.118.03.264, MR 2800336, S2CID 866740.
6. ^ Winkler, Mike; Dinkelacker, Peter; Vogel, Stefan (2017), "New minimal (4; n)-regular matchstick graphs", Geombinatorics, 27: 26–44, arXiv:1604.07134.
7. ^ Winkler, Mike; Dinkelacker, Peter; Vogel, Stefan (2017), On the existence of 4-regular matchstick graphs, arXiv:1705.00293.
8. ^ Lavollée, Jérémy; Swanepoel, Konrad J. (2022), The number of small-degree vertices in matchstick graphs, arXiv:2206.03956
9. ^ Kurz, Sascha; Mazzuoccolo, Giuseppe (2010), "3-regular matchstick graphs with given girth", Geombinatorics, 19: 156–175, arXiv:1401.4360.
10. ^ Winkler, Mike; Dinkelacker, Peter; Vogel, Stefan (2020), "A 3-regular matchstick graph of girth 5 consisting of 54 vertices", Geombinatorics, 29: 116–121, arXiv:1903.04304.
11. ^ Eades, Peter; Wormald, Nicholas C. (1990), "Fixed edge-length graph drawing is NP-hard", Discrete Applied Mathematics, 28 (2): 111–134, doi:10.1016/0166-218X(90)90110-X.
12. ^ Cabello, Sergio; Demaine, Erik D.; Rote, Günter (2007), "Planar embeddings of graphs with specified edge lengths" (PDF), Journal of Graph Algorithms and Applications, 11 (1): 259–276, doi:10.7155/jgaa.00145.
13. ^ Abel, Zachary; Demaine, Erik D.; Demaine, Martin L.; Eisenstat, Sarah; Lynch, Jayson; Schardl, Tao B. (2016), "Who needs crossings? Hardness of plane graph rigidity", in Fekete, Sándor; Lubiw, Anna (eds.), 32nd International Symposium on Computational Geometry (SoCG 2016), Leibniz International Proceedings in Informatics (LIPIcs), vol. 51, Dagstuhl, Germany: Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik, pp. 3:1–3:15, doi:10.4230/LIPIcs.SoCG.2016.3, ISBN 978-3-95977-009-5.
14. ^ Kurz, Sascha (2011), "Fast recognition of planar non unit distance graphs", Geombinatorics, 21 (1): 25–33, arXiv:1401.4375, MR 2858668.
15. ^ Itai, Alon; Papadimitriou, Christos H.; Szwarcfiter, Jayme Luiz (1982), "Hamilton paths in grid graphs", SIAM Journal on Computing, 11 (4): 676–686, doi:10.1137/0211056, MR 0677661.
16. ^ Salvia, Raffaele (2013), "A catalog for matchstick graphs", arXiv:1303.5965 [math.CO]
17. ^ Vaisse, Alexis (2015), Matchstick graphs with up to 10 edges
18. ^ Fruchterman, Thomas M. J.; Reingold, Edward M. (1991), "Graph Drawing by Force-Directed Placement", Software: Practice and Experience, Wiley, 21 (11): 1129–1164, doi:10.1002/spe.4380211102, S2CID 31468174.
19. ^ Carlson, Josiah; Eppstein, David (2006), "Trees with convex faces and optimal angles", in Kaufmann, Michael; Wagner, Dorothea (eds.), Proceedings of the 14th International Symposium on Graph Drawing, Lecture Notes in Computer Science, vol. 4372, Springer-Verlag, pp. 77–88, arXiv:cs.CG/0607113, doi:10.1007/978-3-540-70904-6_9, ISBN 978-3-540-70903-9, MR 2393907, S2CID 12598338.
20. ^ Eppstein, David; Wortman, Kevin A. (2011), "Optimal angular resolution for face-symmetric drawings", Journal of Graph Algorithms and Applications, 15 (4): 551–564, arXiv:0907.5474, doi:10.7155/jgaa.00238, S2CID 10356432.