Recall that a Moore graph (of diameter 2) is a regular graph of girth and diameter . Equivalently, it is a triangle-free graph such that any two nonadjacent vertices have a unique common neighbour. There are famously few Moore graphs: only the 5-cycle of degree 2, the Petersen graph of degree 3, and the Hoffman–Singleton graph of degree 7, and possibly a graph (or even several graphs) of degree and order (the “missing Moore graph”). This is the Hoffman–Singleton theorem.
The Hoffman–Singleton theorem being too mysterious, it is tempting to try to find a weakening of the definition of a Moore graph that allows a few more graphs but still finitely many. One hopes that the “finitely many” part would have some more direct combinatorial proof (as opposed to the algebraic voodoo that goes into Hoffman–Singleton). Such a conjecture was recently posed by Wood and stated in a paper of Devillers, Kamcev, McKay, O Cathain, Royle, Van de Voorde, Wanless, and Wood.
Conjecture 1 For every integer there are only finitely many triangle-free -free graph with diameter apart from stars.
For this is immediate from Hoffman–Singleton. The authors (Devillers, Kamcev, …) find almost million examples of such graphs with , but “nothing suggestive of an infinite class”. However, the following construction (which arose in conversations with Padraig O Cathain) disproves the conjecture for .
Let be a prime congruent to mod . This condition ensures that and are quadratic nonresidues. Let and let . Now consider the Cayley graph . Equivalently, this is the graph with vertex set and joined to if and only if . We claim is triangle-free, -free, and diameter-2.
Claim 1: is triangle-free. Equivalently, is sum-free.
Proof: We must check that there do not exist nonzero such that . Equivalently, we must check that
implies . There are four cases, depending on the two signs:
: We get .
: We get get .
: We get .
: We get . Since polynomial has discriminant , which is a quadratic nonresidue, it follows that .
Claim 2: is -free and diameter-. In fact, we have for every nonzero .
Here is the number of solutions to with . It is an exercise to check that the first statement follows from the second, so we just prove the second.
Proof: Let be a nonzero point not in . First assume . The value of is the number of quadruples with nonzero and such that
For fixed is equivalent to count such that
If the signs are equal then this is a nontrivial quadratic equation, so there are at most solutions. If the signs are different then we get a linear equation
which has a unique solution. If that solution is or then we get , contrary to the assumption that .
Now assume and is nonzero. Then is the number of triples with nonzero such that . If the signs are different there are no solutions, since is nonzero. Otherwise the equation is . Since is a quadratic nonresidue, one of the choices of sign gives solutions and the other gives solutions. Therefore .
Thus in all cases , as claimed.