Hajós construction
# Hajós construction

In graph theory, a branch of mathematics, the Hajós construction is an operation on graphs named after György Hajós (1961) that may be used to construct any critical graph or any graph whose chromatic number is at least some given threshold.

## The construction

Let G and H be two undirected graphs, vw be an edge of G, and xy be an edge of H. Then the Hajós construction forms a new graph that combines the two graphs by identifying vertices v and x into a single vertex, removing the two edges vw and xy, and adding a new edge wy.

For example, let G and H each be a complete graph $K_4$ on four vertices; because of the symmetry of these graphs, the choice of which edge to select from each of them is unimportant. In this case, the result of applying the Hajós construction is the Moser spindle, a seven-vertex unit distance graph that requires four colors.

As another example, if G and H are cycle graphs of length p and q respectively, then the result of applying the Hajós construction is itself a cycle graph, of length p + q − 1.

## Constructible graphs

A graph G is said to be k-constructible (or Hajós-k-constructible) when it formed in one of the following three ways:

* The complete graph $K_k$ is k-constructible.
* Let G and H be any two k-constructible graphs. Then the graph formed by applying the Hajós construction to G and H is k-constructible.
* Let G be any k-constructible graph, and let u and v be any two non-adjacent vertices in G. Then the graph formed by combining u and v into a single vertex is also k-constructible. Equivalently, this graph may be formed by adding edge uv to the graph and then contracting it.

## Connection to coloring

It is straightforward to verify that every k-constructible graph requires at least k colors in any proper graph coloring. Indeed, this is clear for the complete graph $K_k,$ and the effect of identifying two nonadjacent vertices is to force them to have the same color as each other in any coloring, something that does not reduce the number of colors. In the Hajós construction itself, the new edge wy forces at least one of the two vertices w and y to have a different color than the combined vertex for v and x, so any proper coloring of the combined graph leads to a proper coloring of one of the two smaller graphs from which it was formed, which again causes it to require k colors.

Hajós proved more strongly that a graph requires at least k colors, in any proper coloring, if and only if it contains a k-constructible graph as a subgraph. Equivalently, every k-critical graph (a graph that requires k colors but for which every proper subgraph requires fewer colors) is k-constructible. Alternatively, every graph that requires k colors may be formed by combining the Hajós construction, the operation of identifying any two nonadjacent vertices, and the operations of adding a vertex or edge to the given graph, starting from the complete graph $K_k.$

A similar construction may be used for list coloring in place of coloring.

## Constructibility of critical graphs

For k = 3, every k-critical graph (that is, every odd cycle) can be generated as a k-constructible graph such that all of the graphs formed in its construction are also k-critical. For k = 8, this is not true: a graph found by Catlin (1979) as a counterexample to Hajós's conjecture that k-chromatic graphs contain a subdivision of $K_k,$ also serves as a counterexample to this problem. Subsequently, k-critical but not k-constructible graphs solely through k-critical graphs were found for all k ≥ 4. For k = 4, one such example is the graph obtained from the dodecahedron graph by adding a new edge between each pair of antipodal vertices

## The Hajós number

Because merging two non-adjacent vertices reduces the number of vertices in the resulting graph, the number of operations needed to represent a given graph G using the operations defined by Hajós may exceed the number of vertices in G.

More specifically, Mansfield & Welsh (1982) define the Hajós number h(G) of a k-chromatic graph G to be the minimum number of steps needed to construct G from $K_k,$ where each step forms a new graph by combining two previously formed graphs, merging two nonadjacent vertices of a previously formed graph, or adding a vertex or edge to a previously formed graph. They showed that, for an n-vertex graph G with m edges, h(G) ≤ $2^{n2/3−m+1}$ − 1. If every graph has a polynomial Hajós number, this would imply that it is possible to prove non-colorability in nondeterministic polynomial time, and therefore imply that NP = co-NP, a conclusion considered unlikely by complexity theorists. However, it is not known how to prove non-polynomial lower bounds on the Hajós number without making some complexity-theoretic assumption, and if such a bound could be proven it would also imply the existence of non-polynomial bounds on certain types of Frege system in mathematical logic.

The minimum size of an expression tree describing a Hajós construction for a given graph G may be significantly larger than the Hajós number of G, because a shortest expression for G may re-use the same graphs multiple times, an economy not permitted in an expression tree. There exist 3-chromatic graphs for which the smallest such expression tree has exponential size.

## Other applications

Koester (1991) used the Hajós construction to generate an infinite set of 4-critical polyhedral graphs, each having more than twice as many edges as vertices. Similarly, Liu & Zhang (2006) used the construction, starting with the Grötzsch graph, to generate many 4-critical triangle-free graphs, which they showed to be difficult to color using traditional backtracking algorithms.

In polyhedral combinatorics, Euler (2003) used the Hajós construction to generate facets of the stable set polytope.

