# Graph built from orthogonal Latin squares

Reminder : Given a set $$S$$ of $$n$$ elements (we will use $$[n]$$ in the following for simplicity), a Latin square $$L$$ is a function $$L : [n]\times [n] \to S$$, i.e., an $$n\times n$$ array with elements in $$S$$, such that each element of $$S$$ appears exactly once in each row and each column. For example, Let $$L_1$$ and $$L_2$$ be two Latin squares over the ground sets $$S_1$$, $$S_2$$ respectively. They are called orthogonal if for every $$(x_1, x_2) \in S_1 \times S_2$$ there exists a unique $$(i,j)\in [n] \times [n]$$ such that $$L_1(i,j) = x_1$$ and $$L_2(i,j) = x_2$$. For example, the following are two orthogonal Latin squares of order 3. It is known that there at most $$n-1$$ mutually orthogonal Latin squares of order $$n$$, and that the bound is achieved if and only there exist an affine plane of order $$n$$.

Graph : I'm building a graph $$G_n$$ with vertex set the latin squares of order $$n$$ and two vertices are adjacent iff the Latin squares are orthogonal.

I want to understand some properties of this graph. For simplicity I consider the squares up to permutation of $$[n]$$, hence w.l.o.g. all my squares have for first line $$\{1,2,\ldots,n\}$$. Indeed if I call $$H_n$$ the graph not up to permutations, then $$H_n$$ is the $$n!$$ graph blowup of $$G_n$$, or using the Tensor product $$H_n = G_n \times K_{n!}$$ As I'm mainly interested in the chromatic number of my graph, and we know that $$\chi(H_n)\leq \min\{\chi(G_n) ; n!\}$$, I will study only $$G_n$$.

For instance $$G_2=K_1$$, $$G_3=K_2$$.

I know that :

• It's trivial that $$G_n$$ is not complete.
• If there exist an affine plane of order $$n$$ then $$G_n$$ contains $$K_{n-1}$$ as a subgraph, and $$\chi(G_n)\geq n-1$$.

I wonder the following :

• What is the maximum degree of $$G_n$$ ? We know that we have at most $$n-1$$ mutually orthogonal latin squares, but to how many squares can one square be orthogonal (still up to permutation)?
• Do we have any other info on the chromatic number, not coming from the property $$\chi(G_n)\leq \Delta+1$$.
• Can $$G_n$$ contains an induce $$k$$-cycle with $$k>3$$ (i.e. chordless cycle)?

• Can it be conjectured that

Conjecture : for any $$n$$, $$G_n$$ is the disjoint union of complete subgraphs (of different sizes).

Edit After some simple Brute force and some additional reading, I can tell that

• $$G_4$$ is made of 2 disjoint $$K_3$$ and 18 isolated vertices, for a total of 24 Latin squares up to permutations.

• $$G_5$$ is made of 36 disjoint $$K_4$$ and 1200 isolated vertices, for a total of 1344 Latin squares up to permutation.

• The case $$n=6$$ would be the first interesting case, as there are no affine plance of order 6, hence we will find no $$K_5$$ in $$G_6$$. It is known since 1901 (from Tarry hand checking all Latin squares of order 6) that no two were mutually orthogonal. So $$G_6$$ is made of only isolated vertices.

• It is also know that the case $$n=2$$ and $$n=6$$ are the only one with only isolated vertices. (see design theory by Beth, Jingnickel and Lenz)

• From the article "Monogamous Latin Square by Danziger, Wanless and Webb, available on Wanless website here. The authors show that for all $$n > 6$$, if $$n$$ is not of the form $$2p$$ for a prime $$p \geq 11$$, then there exists a latin square of order $$n$$ that possesses an orthogonal mate but is not in any triple of Mutually Orthogonal Latin Squares. Therefore our graph $$G_n$$ will have some isolated $$K_2$$

• Is the conjecture equivalent to this? Write $\sim$ for "orthogonal to." If $L_1 \sim L_2$ and $L_2 \sim L_3$, then $L_1 \sim L_3$. I.e., $\sim$ is transitive. Apr 12 '20 at 20:12
• Yes, the conjecture would be equivalent to this statement. It is pretty strong, but note that we restrict ourselves to Latin squares with $\{1,2,\ldots,n\}$ as first row. To be honest, I'm really not convinced that it well hold for high enough $n$, but it seems like a natural conjecture given the first findings. Apr 13 '20 at 1:02
• Now posted to MO, mathoverflow.net/questions/357408/… Apr 14 '20 at 5:51

On the MathOverflow posting of this question, Brendan McKay addresses the conjecture by referencing examples of $$10 \times 10$$ latin squares with more than one mate but the pair are not members of a mutually orthogonal triple.
There's more from the heavily-studied $$10 \times 10$$ case relevant to your questions. The maximum degree in the graph is likely unbounded. Here's a relevant excerpt from pp327-328 of Latin Squares and Their Applications by Keedwell and Dénes (2nd ed., North Holland, 2015).
"[Parker in 1962 and 1963] discovered that $$10 \times 10$$ latin squares with orthogonal mates are not, in fact, particularly scarce and he also showed that there exist squares with a large number of alternative orthogonal mates. His most striking result concerns the square displayed in Figure 13.2.1 which has 5504 transversals and an estimated one million alternative orthogonal mates (that is, sets of 10 disjoint transversals). However, Parker was able to show by a partly theoretical argument that no two of these alternative orthogonal mates are themselves orthogonal and so, much to his own disappointment, he was not able to obtain a triad of mutually orthogonal $$10 \times 10$$ latin squares. The existence or non-existence of such triads remains an open question."