Rook's graph

From HandWiki
Short description: Graph of chess rook moves

Rook's graph
Rook's graph.svg
8x8 Rook's graph
Verticesnm
Edgesnm(n + m)/2 − nm
Diameter2
Girth3 (if max(n, m) ≥ 3)
Chromatic numbermax(n, m)
Spectrum{m + n − 2, m − 2, n − 2, −2}
Properties
Table of graphs and parameters

In graph theory, a rook's graph is an undirected graph that represents all legal moves of the rook chess piece on a chessboard. Each vertex of a rook's graph represents a square on a chessboard, and there is an edge between any two squares sharing a row (rank) or column (file), the squares that a rook can move between. These graphs can be constructed for chessboards of any rectangular shape. Although rook's graphs have only minor significance in chess lore, they are more important in the abstract mathematics of graphs through their alternative constructions: rook's graphs are the Cartesian product of two complete graphs, and are the line graphs of complete bipartite graphs. The square rook's graphs constitute the two-dimensional Hamming graphs.

Rook's graphs are highly symmetric, having symmetries taking every vertex to every other vertex. In rook's graphs defined from square chessboards, more strongly, every two edges are symmetric, and every pair of vertices is symmetric to every other pair at the same distance in moves (making the graph distance-transitive). For rectangular chessboards whose width and height are relatively prime, the rook's graphs are circulant graphs. With one exception, the rook's graphs can be distinguished from all other graphs using only two properties: the numbers of triangles each edge belongs to, and the existence of a unique 4-cycle connecting each nonadjacent pair of vertices.

Rook's graphs are perfect graphs. In other words, every subset of chessboard squares can be colored so that no two squares in a row or column have the same color, using a number of colors equal to the maximum number of squares from the subset in any single row or column (the clique number of the induced subgraph). This class of induced subgraphs are a key component of a decomposition of perfect graphs used to prove the strong perfect graph theorem, which characterizes all perfect graphs. The independence number and domination number of a rook's graph both equal the smaller of the chessboard's width and height. In terms of chess, the independence number is the maximum number of rooks that can be placed without attacking each other; the domination number is the minimum number needed to attack all unoccupied board squares. Rook's graphs are well-covered graphs, meaning that placing non-attacking rooks one at a time can never get stuck until a set of maximum size is reached.

Definition and mathematical constructions

An n × m rook's graph represents the moves of a rook on an n × m chessboard.[1] Its vertices represent the squares of the chessboard, and may be given coordinates (x, y), where 1 ≤ xn and 1 ≤ ym. Two vertices with coordinates (x1, y1) and (x2, y2) are adjacent if and only if either x1 = x2 or y1 = y2. (If x1 = x2, the vertices share a file and are connected by a vertical rook move; if y1 = y2, they share a rank and are connected by a horizontal rook move.)[1]

The squares of a single rank or file are all directly connected to each other, so each rank and file forms a clique—a subset of vertices forming a complete graph. The whole rook's graph for an n × m chessboard can be formed from these two kinds of cliques, as the Cartesian product of graphs KnKm.[2] Because the rook's graph for a square chessboard is the Cartesian product of equal-size cliques, it is an example of a Hamming graph. Its dimension as a Hamming graph is two, and every two-dimensional Hamming graph is a rook's graph for a square chessboard.[3] Square rook's graphs are also called "Latin square graphs"; applied to a Latin square, its edges describe pairs of squares that cannot contain the same value.[4] The Sudoku graphs are rook's graphs with some additional edges, connecting squares of a Sodoku puzzle that should have unequal values.[5]

The 3-3 duoprism, a four-dimensional convex polytope having a 3 × 3 rook's graph as its skeleton

Geometrically, the rook's graphs can be formed by sets of the vertices and edges (the skeletons) of a family of convex polytopes, the Cartesian products of pairs of neighborly polytopes.[6] For instance, the 3-3 duoprism is a four-dimensional shape formed as the Cartesian product of two triangles, and has a 3 × 3 rook's graph as its skeleton.[7]

Regularity and symmetry

Strong regularity

(Moon 1963) and (Hoffman 1964) observe that the [math]\displaystyle{ m\times n }[/math] rook's graph (or equivalently, as they describe it, the line graph of the complete bipartite graph [math]\displaystyle{ K_{m,n} }[/math]) has all of the following properties:

  • It has [math]\displaystyle{ mn }[/math] vertices, one for each square of the [math]\displaystyle{ m\times n }[/math] chessboard. Each vertex is adjacent to [math]\displaystyle{ m+n-2 }[/math] edges, connecting it to the [math]\displaystyle{ m-1 }[/math] squares on the same rank and the [math]\displaystyle{ n-1 }[/math] squares on the same file.
  • The triangles within the rook's graph are formed by triples of squares within a single rank or file. When [math]\displaystyle{ m\ne n }[/math], exactly [math]\displaystyle{ n\tbinom{m}{2} }[/math] edges (the ones connecting squares on the same rank) belong to [math]\displaystyle{ m-2 }[/math] triangles; the remaining [math]\displaystyle{ m\tbinom{n}{2} }[/math] edges (the ones connecting squares on the same file) belong to [math]\displaystyle{ n-2 }[/math] triangles. When [math]\displaystyle{ m=n }[/math], each edge belongs to [math]\displaystyle{ m-2=n-2 }[/math] triangles.
  • Every two nonadjacent vertices belong to a unique [math]\displaystyle{ 4 }[/math]-vertex cycle, namely the only rectangle using the two vertices as corners.

They show that except in the case [math]\displaystyle{ m=n=4 }[/math], these properties uniquely characterize the rook's graph. That is, the rook's graphs are the only graphs with these numbers of vertices, edges, triangles per edge, and with a unique 4-cycle through each two non-adjacent vertices.[8][9]

When [math]\displaystyle{ m=n }[/math], these conditions may be abbreviated by stating that an [math]\displaystyle{ n\times n }[/math] rook's graph is a strongly regular graph with parameters [math]\displaystyle{ \operatorname{srg}(n^2,2n-2,n-2,2) }[/math]. These parameters describe the number of vertices, the number of edges per vertex, the number of triangles per edge, and the number of shared neighbors for two non-adjacent vertices, respectively.[1] Conversely, every strongly regular graph with these parameters must be an [math]\displaystyle{ n\times n }[/math] rook's graph, unless [math]\displaystyle{ n=4 }[/math].[8][9]

The Shrikhande graph embedded on a torus. This is not a rook's graph, but is strongly regular with the same parameters as the [math]\displaystyle{ 4\times 4 }[/math] rook's graph.

When [math]\displaystyle{ n=4 }[/math], there is another strongly regular graph, the Shrikhande graph, with the same parameters as the [math]\displaystyle{ 4\times 4 }[/math] rook's graph.[10] The Shrikhande graph obeys the same properties listed by Moon and Moser. It can be distinguished from the [math]\displaystyle{ 4\times 4 }[/math] rook's graph in that the neighborhood of each vertex in the Shrikhande graph is connected to form a [math]\displaystyle{ 6 }[/math]-cycle. In contrast, in the [math]\displaystyle{ 4\times 4 }[/math] rook's graph, the neighborhood of each vertex forms two triangles, one for its rank and another for its file, without any edges from one part of the neighborhood to the other.[11] Another way of distinguishing the [math]\displaystyle{ 4\times 4 }[/math] rook's graph from the Shrikhande graph uses clique cover numbers: the [math]\displaystyle{ n=4 }[/math] rook's graph can be covered by four cliques (the four ranks or the four files of the chessboard) whereas six cliques are needed to cover the Shrikhande graph.[10]

Symmetry

Rook's graphs are vertex-transitive, meaning that they have symmetries taking every vertex to every other vertex. This implies that every vertex has an equal number of edges: they are [math]\displaystyle{ (m+n-2) }[/math]-regular. The rook's graphs are the only regular graphs formed from the moves of standard chess pieces in this way.[12] When [math]\displaystyle{ m\ne n }[/math], the symmetries of the rook's graph are formed by independently permuting the rows and columns of the graph, so the automorphism group of the graph has [math]\displaystyle{ m!n! }[/math] elements. When [math]\displaystyle{ m=n }[/math], the graph has additional symmetries that swap the rows and columns, so the number of automorphisms is [math]\displaystyle{ 2n!^2 }[/math].[13]

Any two vertices in a rook's graph are either at distance one or two from each other, according to whether they are adjacent or nonadjacent respectively. Any two nonadjacent vertices may be transformed into any other two nonadjacent vertices by a symmetry of the graph. When the rook's graph is not square, the pairs of adjacent vertices fall into two orbits of the symmetry group according to whether they are adjacent horizontally or vertically, but when the graph is square any two adjacent vertices may also be mapped into each other by a symmetry and the graph is therefore distance-transitive.[14]

When [math]\displaystyle{ m }[/math] and [math]\displaystyle{ n }[/math] are relatively prime, the symmetry group [math]\displaystyle{ S_m\times S_n }[/math] of the rook's graph contains as a subgroup the cyclic group [math]\displaystyle{ C_{mn}=C_m\times C_n }[/math] that acts by cyclically permuting the [math]\displaystyle{ mn }[/math] vertices. Therefore, in this case, the rook's graph is a circulant graph.[15]

Square rook's graphs are connected-homogeneous, meaning that every isomorphism between two connected induced subgraphs can be extended to an automorphism of the whole graph.[16]

Other properties

Perfection

The 3×3 rook's graph (the graph of the 3-3 duoprism), colored with three colors and showing a clique of three vertices. In this graph and each of its induced subgraphs the chromatic number equals the clique number, so it is a perfect graph.

A rook's graph can also be viewed as the line graph of a complete bipartite graph Kn,m — that is, it has one vertex for each edge of Kn,m, and two vertices of the rook's graph are adjacent if and only if the corresponding edges of the complete bipartite graph share a common endpoint.[2][17] In this view, an edge in the complete bipartite graph from the ith vertex on one side of the bipartition to the jth vertex on the other side corresponds to a chessboard square with coordinates (i, j).[1]

Any bipartite graph is a subgraph of a complete bipartite graph, and correspondingly any line graph of a bipartite graph is an induced subgraph of a rook's graph.[18] The line graphs of bipartite graphs are perfect: in them, and in any of their induced subgraphs, the number of colors needed in any vertex coloring is the same as the number of vertices in the largest complete subgraph. Line graphs of bipartite graphs form an important family of perfect graphs: they are one of a small number of families used by (Chudnovsky Robertson) to characterize the perfect graphs and to show that every graph with no odd hole and no odd antihole is perfect.[19] In particular, rook's graphs are themselves perfect.

8-coloring of a chessboard graph obtained from a Cayley table of a finite group

Because a rook's graph is perfect, the number of colors needed in any coloring of the graph is just the size of its largest clique. The cliques of a rook's graph are the subsets of a single row or a single column, and the largest of these have size max(m, n), so this is also the chromatic number of the graph. An n-coloring of an n × n rook's graph may be interpreted as a Latin square: it describes a way of filling the rows and columns of an n × n grid with n different values in such a way that the same value does not appear twice in any row or column.[20] In the same way, a coloring of a rectangular rook's graph corresponds to a Latin rectangle.[21] Although finding an optimal coloring of a rook's graph is straightforward, it is NP-complete to determine whether a partial coloring can be extended to a coloring of the whole graph (this problem is called precoloring extension). Equivalently, it is NP-complete to determine whether a partial Latin square can be completed to a full Latin square.[22]

Independence

Script error: No such module "Chessboard". An independent set in a rook's graph is a set of vertices, no two of which belong to the same row or column of the graph; in chess terms, it corresponds to a placement of rooks no two of which attack each other. Perfect graphs may also be described as the graphs in which, in every induced subgraph, the size of the largest independent set is equal to the number of cliques in a partition of the graph's vertices into a minimum number of cliques. In a rook's graph, the sets of rows or the sets of columns (whichever has fewer sets) form such an optimal partition. The size of the largest independent set in the graph is therefore min(m, n).[1]

Rook's graphs are well-covered graphs: every independent set in a rook's graph can be extended to a maximum independent set, and every maximal independent set in a rook's graph has the same size, min(m, n).[23]

Domination

The domination number of a graph is the minimum cardinality among all dominating sets. On the rook's graph a set of vertices is a dominating set if and only if their corresponding squares either occupy, or are a rook's move away from, all squares on the m × n board. For the m × n board the domination number is min(m, n).[24]

On the rook's graph a k-dominating set is a set of vertices whose corresponding squares attack all other squares (via a rook's move) at least k times. A k-tuple dominating set on the rook's graph is a set of vertices whose corresponding squares attack all other squares at least k times and are themselves attacked at least k − 1 times. The minimum cardinality among all k-dominating and k-tuple dominating sets are the k-domination number and the k-tuple domination number, respectively. On the square board, and for even k, the k-domination number is nk/2 when n ≥ (k2 − 2k)/4 and k < 2n. In a similar fashion, the k-tuple domination number is n(k + 1)/2 when k is odd and less than 2n.[25]

Hamiltonicity

Every rook's graph contains a Hamiltonian cycle.[26] However, these cycles may involve moves between squares that are far apart within a single row or column of the chessboard. Instead, the study of "rook's tours", in the mathematics of chess, has generally concentrated on a special case of these Hamiltonian cycles where the rook is restricted to move only to adjacent squares. These single-step rook's tours only exist on boards with an even number of squares. They play a central role in the proof of Gomory's theorem that, if two squares of opposite colors are removed from a standard chessboard, the remaining squares can always be covered by dominoes.[27] They are featured alongside knight's tours in the first work to discuss chess-piece tours, the 9th century Sanskrit Kavyalankara of Rudrata.[28]

Spectrum

The spectrum of a rook's graph (the eigenvalues of its adjacency matrix) consists of the four eigenvalues [math]\displaystyle{ m+n-2 }[/math], [math]\displaystyle{ m-2 }[/math], [math]\displaystyle{ n-2 }[/math], and [math]\displaystyle{ -2 }[/math]. Because these are all integers, rook's graphs are integral graphs. There are only three classes of graphs (and finitely many exceptional graphs) that can have four eigenvalues with one of the four being [math]\displaystyle{ -2 }[/math]; one of the three classes is the class of rook's graphs. For most combinations of [math]\displaystyle{ m }[/math] and [math]\displaystyle{ n }[/math], the [math]\displaystyle{ m\times n }[/math] rook's graph is spectrally unique: no other graph has the same spectrum. In particular this is true when [math]\displaystyle{ n=2 }[/math] or [math]\displaystyle{ n=m-1 }[/math], or when the two numbers [math]\displaystyle{ m }[/math] and [math]\displaystyle{ n }[/math] sum to at least 18 and do not have the form [math]\displaystyle{ 2t^2\pm t }[/math].[29]

In other graphs

The graphs for which the neighbors of each vertex induce a rook's graph have been called locally grid. Examples include the Johnson graphs [math]\displaystyle{ J(n,k) }[/math], for which the neighbors of each vertex form a [math]\displaystyle{ k\times(n-k) }[/math] rook's graph. Other examples are known, and for some rook's graphs, a complete classification is known. For instance, there are two graphs whose neighborhoods are all [math]\displaystyle{ 3\times 3 }[/math] rook's graphs: they are the Johnson graph [math]\displaystyle{ J(6,3) }[/math], and the complement graph of a [math]\displaystyle{ 4\times 4 }[/math] rook's graph.[30]

See also

References

  1. 1.0 1.1 1.2 1.3 1.4 "Chessboard graphs, related designs, and domination parameters", Journal of Statistical Planning and Inference 76 (1–2): 285–294, 1999, doi:10.1016/S0378-3758(98)00132-3 .
  2. 2.0 2.1 Stones, Douglas S. (2010), "The many formulae for the number of Latin rectangles", Electronic Journal of Combinatorics 17 (1): Article 1, 46, doi:10.37236/487, https://www.combinatorics.org/Volume_17/Abstracts/v17i1a1.html 
  3. Azizoğlu, M. Cemil; Eğecioğlu, Ömer (2003), "Extremal sets minimizing dimension-normalized boundary in Hamming graphs", SIAM Journal on Discrete Mathematics 17 (2): 219–236, doi:10.1137/S0895480100375053 .
  4. Goethals, J.-M.; Seidel, J. J. (1970), "Strongly regular graphs derived from combinatorial designs", Canadian Journal of Mathematics 22 (3): 597–614, doi:10.4153/CJM-1970-067-9 .
  5. "Sudoku squares and chromatic polynomials", Notices of the American Mathematical Society 54 (6): 708–717, 2007, https://www.ams.org/notices/200706/tx070600708p.pdf 
  6. Matschke, Benjamin; Pfeifle, Julian; Pilaud, Vincent (2011), "Prodsimplicial-neighborly polytopes", Discrete & Computational Geometry 46 (1): 100–131, doi:10.1007/s00454-010-9311-y 
  7. Moore, Doug (1992), "Understanding simploids", in Kirk, David, Graphics Gems III, Academic Press, pp. 250–255, doi:10.1016/b978-0-08-050755-2.50057-9 
  8. 8.0 8.1 Moon, J. W. (1963), "On the line-graph of the complete bigraph", Annals of Mathematical Statistics 34 (2): 664–667, doi:10.1214/aoms/1177704179 .
  9. 9.0 9.1 "On the line graph of the complete bipartite graph", Annals of Mathematical Statistics 35 (2): 883–885, 1964, doi:10.1214/aoms/1177703593 .
  10. 10.0 10.1 Fiala, Nick C.; Haemers, Willem H. (2006), "5-chromatic strongly regular graphs", Discrete Mathematics 306 (23): 3083–3096, doi:10.1016/j.disc.2004.03.023 .
  11. Burichenko, V. P.; Makhnev, A. A. (2011), "Об автоморфизмах сильно регулярных локально циклических графов" (in Russian), Doklady Akademii Nauk 441 (2): 151–155 . Translated in Doklady Mathematics 84 (3): 778–782, 2011, doi:10.1134/S1064562411070076. From the first page of the translation: "The Shrikhande graph is the only strongly regular locally hexagonal graph with parameters (16, 6, 2, 2)."
  12. "Graph theory glossary", Freshman Seminar 23j: Chess and Mathematics (Harvard University Mathematics Department), Fall 2004, http://www.math.harvard.edu/~elkies/FS23j.05/glossary_graph.html, retrieved 2023-05-03 .
  13. "On the number of bi-colored graphs", Pacific Journal of Mathematics 8 (4): 743–755, 1958, doi:10.2140/pjm.1958.8.743, http://projecteuclid.org/euclid.pjm/1103039700 . See in particular equation (10), p. 748 for the automorphism group of the [math]\displaystyle{ n\times n }[/math] rook's graph, and the discussion above the equation for the order of this group.
  14. "The symmetry of line graphs", Utilitas Mathematica 5: 113–121, 1974 .
  15. This follows from the definition of the rook's graph as a Cartesian product graph, together with Proposition 4 of Broere, Izak; Hattingh, Johannes H. (1990), "Products of circulant graphs", Quaestiones Mathematicae 13 (2): 191–216, doi:10.1080/16073606.1990.9631612 .
  16. Gray, R.; Macpherson, D. (2010), "Countable connected-homogeneous graphs", Journal of Combinatorial Theory, Series B 100 (2): 97–118, doi:10.1016/j.jctb.2009.04.002 . See in particular Theorem 1, which identifies these graphs as line graphs of complete bipartite graphs.
  17. For the equivalence between Cartesian products of complete graphs and line graphs of complete bipartite graphs, see de Werra, D.; Hertz, A. (1999), "On perfectness of sums of graphs", Discrete Mathematics 195 (1–3): 93–101, doi:10.1016/S0012-365X(98)00168-X, http://www.gerad.ca/~alainh/Sum.pdf .
  18. de Werra & Hertz (1999).
  19. "The strong perfect graph theorem", Annals of Mathematics 164 (1): 51–229, 2006, doi:10.4007/annals.2006.164.51, https://web.math.princeton.edu/~pds/papers/perfect/perfect.pdf .
  20. For the equivalence between edge-coloring complete bipartite graphs and Latin squares, see e.g. LeSaulnier, Timothy D.; Stocker, Christopher; Wenger, Paul S.; West, Douglas B. (2010), "Rainbow matching in edge-colored graphs", Electronic Journal of Combinatorics 17 (1): Note 26, 5, doi:10.37236/475, http://www.combinatorics.org/Volume_17/Abstracts/v17i1n26.html .
  21. Stones, Douglas S. (2010), "The many formulae for the number of Latin rectangles", Electronic Journal of Combinatorics 17 (1): A1:1–A1:46, doi:10.37236/487 
  22. "The complexity of completing partial Latin squares", Discrete Applied Mathematics 8 (1): 25–30, 1984, doi:10.1016/0166-218X(84)90075-1 .
  23. For an equivalent statement to the well-covered property of rook's graphs, in terms of matchings in complete bipartite graphs, see Lesk, M.; Plummer, M. D.; Pulleyblank, W. R. (1984), "Equi-matchable graphs", in Bollobás, Béla, Graph Theory and Combinatorics: Proceedings of the Cambridge Combinatorial Conference, in Honour of Paul Erdös, London: Academic Press, pp. 239–254 .
  24. "Solution to problem 34b", Challenging Mathematical Problems with Elementary Solutions, Dover, 1987, p. 77, ISBN 9780486318578, https://books.google.com/books?id=VkHDAgAAQBAJ&pg=PA77 .
  25. Burchett, Paul; Lane, David; Lachniet, Jason (2009), "K-domination and k-tuple domination on the rook's graph and other results", Congressus Numerantium 199: 187–204 .
  26. Hurley, C. B.; Oldford, R. W. (February 2011), "Graphs as navigational infrastructure for high dimensional data spaces", Computational Statistics 26 (4): 585–612, doi:10.1007/s00180-011-0228-6 
  27. Watkins, John J. (2004), Across the Board: The Mathematics of Chessboard Problems, Princeton University Press, p. 12, ISBN 9780691130620 
  28. Murray, H. J. R. (January 1902), "The knight's tour: ancient and oriental", The British Chess Magazine 22 (1): 1–7, https://books.google.com/books?id=wolJAAAAYAAJ&pg=PA1 
  29. Doob, Michael (1970), "On characterizing certain graphs with four eigenvalues by their spectra", Linear Algebra and Its Applications 3 (4): 461–482, doi:10.1016/0024-3795(70)90037-6 
  30. Cohen, Arjeh M. (1990), "Local recognition of graphs, buildings, and related geometries", in Kantor, William M.; Liebler, Robert A.; Payne, Stanley E. et al., Finite Geometries, Buildings, and Related Topics: Papers from the Conference on Buildings and Related Geometries held in Pingree Park, Colorado, July 17–23, 1988, Oxford Science Publications, Oxford University Press, pp. 85–94, https://pure.tue.nl/ws/files/1882013/588207.pdf ; see in particular pp. 89–90

External links