# Unit distance graph

In mathematics, and particularly geometric graph theory, a **unit distance graph** is a graph formed from a collection of points in the Euclidean plane by connecting two points by an edge whenever the distance between the two points is exactly one. Edges of unit distance graphs sometimes cross each other, so they are not always planar; a unit distance graph without crossings is called a **matchstick graph**.

The Hadwiger–Nelson problem concerns the chromatic number of unit distance graphs. It is known that there exist unit distance graphs requiring five[1] colors in any proper coloring, and that all such graphs can be colored with at most seven colors. Another important open problem concerning unit distance graphs asks how many edges they can have relative to their number of vertices.

## Examples

The following graphs are unit distance graphs:

- Any cycle graph
- Any grid graph
- Any hypercube graph
- Any star graph
- Any matchstick graph or penny graph
- The Petersen graph
- The Heawood graph (Gerbracht 2009)
- The wheel graph
*W*_{7} - The Moser spindle, the smallest 4-chromatic unit distance graph

Any Cartesian product of unit distance graphs produces another unit distance graph. However, the same is not true for other commonly-used graph products (Horvat & Pisanski 2010).

## Subgraphs of unit distance graphs

Some sources define a graph as being a unit distance graph if its vertices can be mapped to distinct locations in the plane such that adjacent pairs are at unit distance apart, disregarding the possibility that some non-adjacent pairs might also be at unit distance apart. For instance, the Möbius-Kantor graph has a drawing of this type.

According to this looser definition of a unit distance graph, all generalized Petersen graphs are unit distance graphs (Žitnik, Horvat & Pisanski 2010). In order to distinguish the two definitions, the graphs in which non-edges are required to be a non-unit distance apart may be called **strict unit distance graphs** (Gervacio, Lim & Maehara 2008).

The graph formed by removing one of the spokes from the wheel graph *W*_{7} is a subgraph of a unit distance graph, but is not a strict unit distance graph: there is only one way (up to congruence) to place the vertices at distinct locations such that adjacent vertices are a unit distance apart, and this placement also puts the two endpoints of the missing spoke at unit distance (Soifer 2008, p. 94).

## Counting unit distances

Unsolved problem in mathematics:How many unit distances can be determined by a set of points? (more unsolved problems in mathematics) |

Paul Erdős (1946) posed the problem of estimating how many pairs of points in a set of *n* points could be at unit distance from each other. In graph theoretic terms, how dense can a unit distance graph be?

The hypercube graph provides a lower bound on the number of unit distances proportional to By considering points in a square grid with carefully chosen spacing, Erdős found an improved lower bound of the form

and offered a prize of $500 for determining whether or not the maximum number of unit distances can also be upper bounded by a function of this form (Kuperberg 1992). The best known upper bound for this problem, due to Joel Spencer, Endre Szemerédi, and William Trotter (1984), is proportional to

this bound can also be viewed as counting incidences between points and unit circles, and is closely related to the Szemerédi–Trotter theorem on incidences between points and lines.

## Representation of algebraic numbers and the Beckman–Quarles theorem

For every algebraic number *A*, it is possible to find a unit distance graph *G* in which some pair of vertices are at distance *A* in all unit distance representations of *G* (Maehara 1991, 1992). This result implies a finite version of the Beckman–Quarles theorem: for any two points *p* and *q* at distance *A*, there exists a finite rigid unit distance graph containing *p* and *q* such that any transformation of the plane that preserves the unit distances in this graph preserves the distance between *p* and *q* (Tyszka 2000). The full Beckman–Quarles theorem states that any transformation of the Euclidean plane (or a higher-dimensional space) that preserves unit distances must be a congruence; that is, for the infinite unit distance graph whose vertices are all the points in the plane, any graph automorphism must be an isometry (Beckman & Quarles 1953).

## Generalization to higher dimensions

The definition of a unit distance graph may naturally be generalized to any higher-dimensional Euclidean space. Any graph may be embedded as a set of points in a sufficiently high dimension; Maehara & Rödl (1990) show that the dimension necessary to embed a graph in this way may be bounded by twice its maximum degree.

The dimension needed to embed a graph so that all edges have unit distance, and the dimension needed to embed a graph so that the edges are exactly the unit distance pairs, may greatly differ from each other: the 2*n*-vertex crown graph may be embedded in four dimensions so that all its edges have unit length, but requires at least *n* − 2 dimensions to be embedded so that the edges are the only unit-distance pairs (Erdős & Simonovits 1980).

## Computational complexity

It is NP-hard, and more specifically complete for the existential theory of the reals, to test whether a given graph is a unit distance graph, or is a strict unit distance graph (Schaefer 2013).

It is also NP-complete to determine whether a unit distance graph has a Hamiltonian cycle, even when the vertices of the graph all have integer coordinates (Itai, Papadimitriou & Szwarcfiter 1982).

## See also

- Unit disk graph, a graph on the plane that has an edge whenever two points are at distance at most one

## References

- "Amateur mathematician cracks decades-old math problem".
*Science | AAAS*. 2018-04-18. Retrieved 2018-04-21.

- Beckman, F. S.; Quarles, D. A., Jr. (1953), "On isometries of Euclidean spaces",
*Proceedings of the American Mathematical Society*,**4**(5): 810–815, doi:10.2307/2032415, JSTOR 2032415, MR 0058193. - Erdős, Paul (1946), "On sets of distances of
*n*points",*American Mathematical Monthly*,**53**(5): 248–250, doi:10.2307/2305092, JSTOR 2305092. - Erdős, Paul; Simonovits, Miklós (1980), "On the chromatic number of geometric graphs",
*Ars Combinatoria*,**9**: 229–246. As cited by Soifer (2008, p. 97). - Gerbracht, Eberhard H.-A. (2009),
*Eleven unit distance embeddings of the Heawood graph*, arXiv:0912.5395, Bibcode:2009arXiv0912.5395G. - 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. - Horvat, Boris; Pisanski, Tomaž (2010), "Products of unit distance graphs",
*Discrete Mathematics*,**310**(12): 1783–1792, doi:10.1016/j.disc.2009.11.035, MR 2610282. - Itai, Alon; Papadimitriou, Christos H.; Szwarcfiter, Jayme Luiz (1982), "Hamilton paths in grid graphs",
*SIAM Journal on Computing*,**11**(4): 676–686, CiteSeerX 10.1.1.383.1078, doi:10.1137/0211056, MR 0677661. - Kuperberg, Greg (1992),
*The Erdos kitty: At least $9050 in prizes!*, Posting to usenet groups rec.puzzles and sci.math, archived from the original on 2006-09-29. - Maehara, Hiroshi (1991), "Distances in a rigid unit-distance graph in the plane",
*Discrete Applied Mathematics*,**31**(2): 193–200, doi:10.1016/0166-218X(91)90070-D. - Maehara, Hiroshi (1992), "Extending a flexible unit-bar framework to a rigid one",
*Discrete Mathematics*,**108**(1–3): 167–174, doi:10.1016/0012-365X(92)90671-2, MR 1189840. - Maehara, Hiroshi; Rödl, Vojtech (1990), "On the dimension to represent a graph by a unit distance graph",
*Graphs and Combinatorics*,**6**(4): 365–367, doi:10.1007/BF01787703. - Schaefer, Marcus (2013), "Realizability of graphs and linkages", in Pach, János (ed.),
*Thirty Essays on Geometric Graph Theory*, Springer, pp. 461–482, CiteSeerX 10.1.1.220.9651, doi:10.1007/978-1-4614-0110-0_24, ISBN 978-1-4614-0109-4. - Soifer, Alexander (2008),
*The Mathematical Coloring Book*, Springer-Verlag, ISBN 978-0-387-74640-1. - Spencer, Joel; Szemerédi, Endre; Trotter, William T. (1984), "Unit distances in the Euclidean plane", in Bollobás, Béla (ed.),
*Graph Theory and Combinatorics*, London: Academic Press, pp. 293–308, ISBN 978-0-12-111760-3, MR 0777185. - Tyszka, Apoloniusz (2000), "Discrete versions of the Beckman-Quarles theorem",
*Aequationes Mathematicae*,**59**(1–2): 124–133, arXiv:math/9904047, doi:10.1007/PL00000119, MR 1741475. - Žitnik, Arjana; Horvat, Boris; Pisanski, Tomaž (2010),
*All generalized Petersen graphs are unit-distance graphs*(PDF), IMFM preprints,**1109**.

## External links

- Venkatasubramanian, Suresh, "Problem 39: Distances among Point Sets in
**R**^{2}and**R**^{3}",*The Open Problems Project* - Weisstein, Eric W. "Unit-Distance Graph".
*MathWorld*.