Number of edges 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, the question asks how dense a unit distance graph can be, and Erdős's publication on this question was one of the first works in
extremal graph theory. The
hypercube graphs and
Hamming graphs provide a lower bound on the number of unit distances, proportional to n\log n. By considering points in a square grid with carefully chosen spacing, Erdős found an improved lower bound of the form n^{1+c/\log\log n} for a constant c, and offered $500 for a proof of whether the number of unit distances can also be bounded above by a function of this form. The best known upper bound for this problem is \sqrt[3]{\frac{29n^4}{4}}\approx 1.936n^{4/3}. This bound can be viewed as counting incidences between points and unit circles, and is closely related to the
crossing number inequality and to the
Szemerédi–Trotter theorem on incidences between points and lines. In 1959, Erdős and
Leo Moser asked about the special case of this problem for the vertices of a
convex polygon. In this case, the maximum number of unit distances is at most n\log_2 n+4n. Only a linear lower bound, 2n-7, is known. For small values of n the exact maximum number of possible edges is known. For n=2,3,4,\dots these numbers of edges are:
Forbidden subgraphs If a given graph G is not a non-strict unit distance graph, neither is any supergraph H of G. A similar idea works for strict unit distance graphs, but using the concept of an
induced subgraph, a subgraph formed from all edges between the pairs of vertices in a given subset of vertices. If G is not a strict unit distance graph, then neither is any other H that has G as an induced subgraph. Because of these relations between whether a subgraph or its supergraph is a unit distance graph, it is possible to describe unit distance graphs by their
forbidden subgraphs. These are the minimal graphs that are not unit distance graphs of the given type. They can be used to determine whether a given graph G is a unit distance graph, of either type. G is a non-strict unit distance graph, if and only if G is not a supergraph of a forbidden graph for the non-strict unit distance graphs. G is a strict unit distance graph, if and only if G is not an induced supergraph of a forbidden graph for the strict unit distance graphs. For both the non-strict and strict unit distance graphs, the forbidden graphs include both the complete graph K_4 and the
complete bipartite graph K_{2,3}. For K_{2,3}, wherever the vertices on the two-vertex side of this graph are placed, there are at most two positions at unit distance from them to place the other three vertices, so it is impossible to place all three vertices at distinct points. These are the only two forbidden graphs for the non-strict unit distance graphs on up to five vertices; there are six forbidden graphs on up to seven vertices and 74 on graphs up to nine vertices. Because gluing two unit distance graphs (or subgraphs thereof) at a vertex produce strict (respectively non-strict) unit distance graphs, every forbidden graph is a
biconnected graph, one that cannot be formed by this gluing process. The
wheel graph W_7 can be realized as a strict unit distance graph with six of its vertices forming a unit
regular hexagon and the seventh at the center of the hexagon. Removing one of the edges from the center vertex produces a subgraph that still has unit-length edges, but which is not a strict unit distance graph. The regular-hexagon placement of its vertices is the 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 edge at unit distance. Thus, it is a forbidden graph for the strict unit distance graphs, but not one of the six forbidden graphs for the non-strict unit distance graphs. Other examples of graphs that are non-strict unit distance graphs but not strict unit distance graphs include the graph formed by removing an outer edge from W_7, and the six-vertex graph formed from a
triangular prism by removing an edge from one of its triangles.
Algebraic numbers and rigidity For every
algebraic number \alpha, it is possible to construct a unit distance graph G in which some pair of vertices are at distance \alpha in all unit distance representations of G. This result implies a finite version of the
Beckman–Quarles theorem: for any two points p and q at distance \alpha from each other, 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 also preserves the distance between p and q. The full Beckman–Quarles theorem states that the only transformations of the Euclidean plane (or a higher-dimensional Euclidean space) that preserve unit distances are the
isometries. Equivalently, for the infinite unit distance graph generated by all the points in the plane, all
graph automorphisms preserve all of the distances in the plane, not just the unit distances. If \alpha is an algebraic number of
modulus 1 that is not a
root of unity, then the integer combinations of powers of \alpha form a
finitely generated subgroup of the
additive group of
complex numbers whose unit distance graph has infinite
degree. For instance, \alpha can be chosen as one of the two complex roots of the polynomial z^4-z^3-z^2-z+1, producing an infinite-degree unit distance graph with four generators.
Coloring The
Hadwiger–Nelson problem concerns the
chromatic number of unit distance graphs, and more specifically of the infinite unit distance graph formed from all points of the Euclidean plane. By the
de Bruijn–Erdős theorem, which assumes the
axiom of choice, this is equivalent to asking for the largest chromatic number of a finite unit distance graph. There exist unit distance graphs requiring five colors in any proper coloring, and all unit distance graphs can be colored with at most seven colors. embedded as a unit distance graph Answering another question of Paul Erdős, it is possible for
triangle-free unit distance graphs to require four colors.
Enumeration The number of strict unit distance graphs on n\ge 4 labeled vertices is at most \binom{n(n-1)}{2n}=O\left(2^{\bigl(4+o(1)\bigr)n\log_2 n}\right), as expressed using
big O notation and little o notation. ==Generalization to higher dimensions==