Discrete

As many points as two steps allow

In a graph where every point has d neighbours and every point is within two steps of every other, there can be at most d² + 1 points — one, its d neighbours, and d(d − 1) more reached through them. Graphs that meet the bound exactly are rare to the point of absurdity. The pentagon does it for d = 2, the Petersen graph for d = 3, a fifty-point graph found in 1960 for d = 7, and an eigenvalue argument proves there is nothing else — except possibly one graph with 3,250 points and 57 neighbours each, which nobody has found or ruled out.

Worth reading first: The densest graph without a square · The fewest triangles an edge density allows.

The densest graph without a square asked how many edges a graph can carry with no cycle of four. Forbid triangles as well, and the graph has girth at least five: no cycle shorter than five edges. A graph of girth five is sparse by necessity, and the natural extremal question turns inside out. Instead of asking how many edges fit, fix how many neighbours each point has and ask how many points the graph must have — or, in the other direction, how many it can have if every point must be close to every other.

Take a graph in which every point has exactly dd neighbours and every point can be reached from every other in at most two steps. Stand at one point. It has dd neighbours, each of those has d−1d - 1 further neighbours, and that is everything within two steps. So there are at most

1+d+d(d−1)=d2+11 + d + d(d - 1) = d^2 + 1

points, with equality exactly when the d(d−1)d(d-1) points two steps away are all different — that is, when the graph has no triangle and no four-cycle, girth five. This is the Moore bound, named after Edward F. Moore, who asked in the late 1950s which graphs meet it.

The Hoffman–Singleton graph: five pentagons, five pentagrams. Fifty vertices of degree seven and girth five, built from five pentagons and five pentagrams joined by the rule j of pentagon h to h·i + j of pentagram i.
Fig. 1 The Hoffman–Singleton graph in Keith Robertson’s form: five pentagons (top) and five pentagrams (bottom), vertex j of pentagon h joined to vertex h·i + j, counted modulo 5, of pentagram i — fifty vertices and 175 edges. Every vertex has seven neighbours, there is no cycle shorter than five, and every vertex is within two steps of every other, so 1 + 7 + 42 = 50 is met exactly.

Graphs that meet it are called Moore graphs, and there are astonishingly few. The pentagon meets it with d=2d = 2: five points, 1+2+21 + 2 + 2. The Petersen graph meets it with d=3d = 3: ten points. The graph in the figure, found by Alan Hoffman and Robert Singleton in 1960, meets it with d=7d = 7: fifty points. And that is all — with one possible exception that has resisted every attempt for sixty years.

Seen from one point

The bound is a breadth-first count, and a Moore graph laid out from one of its points shows the count literally.

The Petersen graph seen from one vertex: 10 = 1 + 3 + 6. Breadth-first layers from a vertex: 1, 3, 6; degree 3, girth 5, 10 vertices.
Fig. 2 The Petersen graph laid out from one vertex (top): its three neighbours, and the six vertices two steps away. Every vertex appears, and every vertex of the bottom row is reached by exactly one path, since the shortest cycle has five edges. So the graph has exactly 1 + 3 + 6 = 10 vertices; the edges within the bottom row are the rest of the graph.

In the Petersen graph, the top point’s three neighbours each have two further neighbours, and the six points reached that way are all different and are all the remaining points. Every edge of the graph is either on a path down from the top or runs within the bottom row, joining two points that are each two steps from the top. Those bottom-row edges are what make every point within two steps of every other: a point in the bottom row reaches the others through them.

The Hoffman–Singleton graph seen from one vertex: 50 = 1 + 7 + 42. Breadth-first layers from a vertex: 1, 7, 42; degree 7, girth 5, 50 vertices.
Fig. 3 The Hoffman–Singleton graph laid out the same way: one vertex, its seven neighbours, and the 42 vertices two steps away, each reached by exactly one path. 1 + 7 + 42 = 50, the whole graph.

The Hoffman–Singleton graph does the same with seven neighbours and forty-two points two steps away. The figures check every claim by computation: every point has the stated degree, a search from every point finds no cycle shorter than five, and the layers from a point have sizes 11, dd and d(d−1)d(d-1) with nothing left over. The bound is not approached; it is met with no room to spare, and meeting it forces a structure so rigid that it almost never exists.

Why two steps and girth five go together

The two conditions in the bound look independent — one about distance, one about cycles — and a Moore graph is exactly where they meet. A graph with every point within two steps of every other has diameter two; a graph with no cycle shorter than five has girth five. For a graph of degree dd, diameter two forces at most d2+1d^2 + 1 points, and girth five forces at least d2+1d^2 + 1, by the same breadth-first count read the other way: from any point, the d(d−1)d(d-1) points two steps away must all be distinct if there are no short cycles.

So a Moore graph is simultaneously the largest graph of its degree and diameter and the smallest of its degree and girth. Most graphs fail both bounds by a wide margin. Triangle-free graphs, which the edge that forces a triangle found can be as dense as a complete bipartite graph, are far from girth five; the complete bipartite graph has four-cycles everywhere. Pushing girth up to five while keeping every point within two steps is a demand so tight that it pins down the number of points exactly.

Pentagons and pentagrams

The Hoffman–Singleton graph has a construction that fits on a line, due to Keith Robertson. Take five pentagons, numbered 00 to 44, each with vertices numbered 00 to 44 round the cycle, and five pentagrams — five-pointed stars, each vertex joined to the two vertices two places away round the circle — numbered the same way. Join vertex jj of pentagon hh to vertex h⋅i+jh \cdot i + j of pentagram ii, all numbers taken modulo 55.

Each pentagon vertex then has two neighbours in its pentagon and one in each of the five pentagrams: seven. Each pentagram vertex likewise. The multiplication h⋅ih \cdot i is what prevents short cycles: two pentagon vertices can share a neighbour in at most one pentagram, because a pair of equations h⋅i+j=h′⋅i+j′h \cdot i + j = h' \cdot i + j' determines ii when h≠h′h \ne h', and arithmetic modulo the prime 55 guarantees it. The construction is a small piece of finite geometry in disguise, of the kind the orders a plane cannot have built projective planes from.

Why only four degrees

The proof that nothing else exists is an eigenvalue argument, and it is one of the classic applications of linear algebra to a counting problem.

Let AA be the adjacency matrix of a Moore graph with degree dd: rows and columns indexed by the points, with a 11 where two points are joined. The (u,v)(u, v) entry of A2A^2 counts the walks of length two from uu to vv, the fact two graphs the eigenvalues cannot tell apart built on. In a Moore graph, that count is dd on the diagonal, 00 for joined points (no triangles), and exactly 11 for points not joined (they are two steps apart by exactly one path). So

A2+A−(d−1)I=J,A^2 + A - (d-1)I = J,

where JJ is the matrix of all ones. This single identity determines the eigenvalues. The all-ones vector gives eigenvalue dd. Every other eigenvector is orthogonal to it, so JJ annihilates it, and its eigenvalue λ\lambda satisfies λ2+λ−(d−1)=0\lambda^2 + \lambda - (d-1) = 0:

λ=−1±4d−32.\lambda = \frac{-1 \pm \sqrt{4d - 3}}{2}.

The two values occur with multiplicities aa and bb that must add to d2d^2 — the number of points less one — and must make the trace of AA, which is nought since no point is joined to itself, come out right: d+aλ1+bλ2=0d + a\lambda_1 + b\lambda_2 = 0. Those two equations fix aa and bb. And multiplicities must be whole numbers.

Only four degrees can have a Moore graph. Degrees 2 to 60 with the distance of the eigenvalue multiplicity from a whole number; whole only at 2, 3, 7, 57.
Fig. 4 For each degree d from 2 to 60, a Moore graph would have d2+1d^2 + 1 vertices and eigenvalues d and (−1±4d−3)/2(-1 \pm \sqrt{4d - 3})/2. The two multiplicities, fixed by the number of vertices and by the trace, are drawn by how far they fall from a whole number. They are whole only at d = 2, 3, 7 and 57.

If 4d−3\sqrt{4d - 3} is irrational, the two multiplicities must be equal, which forces d=2d = 2 — the pentagon. If it is a whole number ss, the trace equation becomes a condition that ss divides 1515, so ss is 11, 33, 55 or 1515, and d=(s2+3)/4d = (s^2 + 3)/4 is 11, 33, 77 or 5757. Setting aside the trivial d=1d = 1, the only possible degrees are 22, 33, 77 and 5757. The figure computes the multiplicities for every degree from 22 to 6060 and finds them whole at exactly those four.

The divisibility step is worth writing out, because it is where the whole classification happens. With s=4d−3s = \sqrt{4d - 3}, the eigenvalues are (−1±s)/2(-1 \pm s)/2 and d=(s2+3)/4d = (s^2 + 3)/4. The trace condition d+aλ1+bλ2=0d + a\lambda_1 + b\lambda_2 = 0, with a+b=d2a + b = d^2, simplifies to (a−b)s=d2−2d(a - b)s = d^2 - 2d. Substituting d=(s2+3)/4d = (s^2 + 3)/4 and clearing denominators leaves

s4−2s2−16(a−b)s=15.s^4 - 2s^2 - 16(a - b)s = 15.

Every term on the left is a multiple of ss, so ss must divide 1515. The four divisors of 1515 are 11, 33, 55 and 1515, giving d=1d = 1, 33, 77 and 5757. The number 1515 is not chosen; it falls out of the algebra, and with it the entire list.

Hoffman and Singleton published this in 1960, together with the graph for d=7d = 7 and a proof that it is unique. For d=57d = 57 the argument allows a graph with 3,2503{,}250 points; it does not produce one.

The pentagon, where the square root is irrational

The case d=2d = 2 is the one that escapes the divisibility argument, and it is worth seeing why. A graph of degree two is a union of cycles, and a Moore graph of degree two must have 22+1=52^2 + 1 = 5 points, all within two steps of one another: the pentagon. Its eigenvalues are 22 and the two roots of λ2+λ−1=0\lambda^2 + \lambda - 1 = 0, which are (−1±5)/2(-1 \pm \sqrt 5)/2 — the golden ratio’s reciprocal and its negative partner — each with multiplicity two.

Here 4d−3=5\sqrt{4d - 3} = \sqrt 5 is irrational, so the two eigenvalues are conjugate irrationals, and the only way the trace can come out rational is for them to appear equally often. That forces a=ba = b, and a+b=d2a + b = d^2 with the trace condition then forces d=2d = 2. Every other degree needs 4d−34d - 3 to be a perfect square, and from there the divisibility by fifteen takes over. The pentagon is the one Moore graph whose spectrum is irrational, and the golden ratio sits in it for the same reason it sits in the regular pentagon’s diagonals.

Longer cycles, and the graphs from geometry

The question generalises: fix the degree and the girth, and ask for the smallest graph — a cage. The breadth-first count gives a Moore bound for every girth, and the cages can be compared with it.

The smallest cubic graphs of each girth against the Moore bound. girth 3: 4 (bound 4), K4; girth 4: 6 (bound 6), K3,3; girth 5: 10 (bound 10), Petersen; girth 6: 14 (bound 14), Heawood; girth 7: 24 (bound 22), McGee; girth 8: 30 (bound 30), Tutte–Coxeter; girth 9: 58 (bound 46), the 18 (9,3)-cages; girth 10: 70 (bound 62), Balaban, Harries, Harries–Wong; girth 11: 112 (bound 94), Balaban 11-cage; girth 12: 126 (bound 126), Benson graph.
Fig. 5 The smallest graphs in which every vertex has three neighbours and the shortest cycle has g edges — the cages — against the Moore bound. The bound is met exactly at girth 3 to 6, 8 and 12, by K4, K3,3, the Petersen graph, the Heawood graph, the Tutte–Coxeter graph and the Benson graph, and missed everywhere else.

For three neighbours per point, the bound is met at girths 33, 44, 55, 66, 88 and 1212, and at no other. The cases of even girth have a beautiful source. The Heawood graph, with fourteen points and girth six, is the incidence graph of the projective plane of order two — the seven points and seven lines of the Fano plane, each point joined to the lines through it — and the plane hiding in the squares met that plane among Latin squares. The Tutte–Coxeter graph, girth eight, is the incidence graph of a generalised quadrangle, and the Benson graph, girth twelve, of a generalised hexagon. Walter Feit and Graham Higman proved in 1964 that such geometries exist only for these few shapes, which is why the even-girth Moore graphs stop at twelve.

For odd girth greater than five, Eiichi Bannai and Tatsuro Ito, and independently Robert Damerell, proved in 1973 that no Moore graphs exist at all except the odd cycles themselves. The pentagon, the Petersen graph, the Hoffman–Singleton graph and the missing one are the only Moore graphs of odd girth beyond the trivial ones.

The Petersen graph’s other lives

The Petersen graph turns up so often that it has become the standard counterexample of graph theory, and its role as a Moore graph explains some of its other appearances.

It is the Kneser graph on the pairs from five things: one point for each of the ten pairs, two points joined when their pairs share nothing. Several colours on every vertex and its predecessor coloured exactly this family and found that three colours are needed. It cannot be drawn in the plane without crossings, yet contains no stretched copy of K5K_5, since no point has four neighbours; five spokes squeezed into K5 contracted its spokes and found K5K_5 anyway. And it is a Moore graph: the most points a graph of degree three can have if every point is within two steps of every other.

These are not three coincidences. A graph that is extremal in one sense is usually extremal in several, because extremality forces symmetry and symmetry makes a graph special in every direction at once. The Petersen graph has 120 symmetries, as many as the ways of permuting five things, since each permutation of the five things permutes the ten pairs.

Designing networks two steps wide

The Moore bound is also a practical question. A network of computers or switches, each connected to dd others, should have every node close to every other, and the degree–diameter problem asks for the largest network with degree dd and every node within kk steps of every other. The Moore bound caps the answer, and for diameter two and degree seven the Hoffman–Singleton graph achieves it.

For the degrees where no Moore graph exists, the best known networks fall short of the bound, and the gap is the subject of an active search. For diameter two and degree three the best is the Petersen graph itself; for larger degrees, graphs with close to d2d^2 points are known from constructions based on finite fields, and tables of the largest known graphs for each degree and diameter are maintained and improved by computer searches. The Moore graphs are the ideal these networks aim at, and their near-nonexistence is the reason the tables are full of approximations.

Why rigidity makes existence rare

The pattern across these results is that meeting a counting bound exactly forces an algebraic identity — here A2+A−(d−1)I=JA^2 + A - (d-1)I = J — and the identity forces integrality conditions that almost nothing satisfies.

The same phenomenon appeared in the orders a plane cannot have, where a projective plane of order nn forced the matrix identity NNT=nI+JNN^{\mathsf T} = nI + J, and the Bruck–Ryser theorem turned that into a condition on sums of squares that rules out orders six, fourteen and infinitely many others. In both cases the counting is easy and the conclusion is drastic: a structure that is perfectly efficient must be perfectly regular, and perfect regularity is a strong arithmetic constraint. The eigenvalues are where the arithmetic shows.

What the figures can and cannot show

The graphs are built and checked, not quoted. The Petersen and Hoffman–Singleton graphs are constructed from their rules, and their degrees, girths and breadth-first layers are computed; the claim that they meet the Moore bound is verified, not assumed.

The degree restriction is computed from the formula for every degree to sixty. That the four survivors are the only ones for all degrees is the divisibility argument, which the figure illustrates and does not replace.

The cage sizes are quoted. The smallest graphs of girth seven and above were found by long computer searches and by constructions, and are taken from the published record; only the Moore bounds beside them, and the Petersen graph’s place in the table, are computed here.

Still open: the graph of degree 57

A Moore graph of degree 5757 would have 3,2503{,}250 points, each with 5757 neighbours, no triangles, no four-cycles, and every point within two steps of every other. The eigenvalue argument allows it: its eigenvalues would be 5757, 77 and −8-8, with multiplicities 11, 1,7291{,}729 and 1,5201{,}520, all whole numbers.

The multiplicity 1,7291{,}729 is, as it happens, the number Ramanujan called interesting from a hospital bed: the smallest number that is a sum of two cubes in two different ways. It has no known connection to the graph; it is simply what the arithmetic produces.

Whether it exists is unknown, and it is one of the best-known open problems in graph theory. What is known is a list of things it cannot be. Graham Higman showed that it cannot be vertex-transitive — its symmetries cannot carry every point to every other — and Michael Aschbacher showed in 1971 that it cannot have a rank-three symmetry group. Later work by Martin Mačaj and Jozef Širáň bounded the size of its symmetry group to a few hundred at most. So if the graph exists it is nearly without symmetry, which is exactly what makes it hard to find: every successful construction of a Moore graph so far, including Robertson’s, has leaned on a large group of symmetries, and this one would have to be built without one.

Efficiency that almost never happens

The habit worth keeping is to ask what exactness costs.

The Moore bound is easy to prove and easy to nearly meet: many graphs come close. Meeting it exactly turns a count into an equation, and the equation into eigenvalues, and the eigenvalues into a condition that only four degrees satisfy. Three of the four are realised by graphs of unusual beauty, and the fourth is a single question — whether a perfectly efficient graph on 3,250 points can exist without any of the symmetry that every other perfect structure has needed.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

EigenvalueExhaustive searchExtremal graphGirthMoore graphPetersen graphProjective plane