TOPICS
Search

Rook Graph


RookGraphsChessboard

The m×n rook graph is the graph Cartesian product K_m square K_n of complete graphs, where m and n are positive integers. It is also called the m×n grid (Brouwer et al. 1989, p. 440) or a lattice graph (e.g., Brouwer). By analogy with the KC graph and KP graph, the m×n rook graph could also be called a "KK graph."

It is equivalent to the line graph L(K_(m,n)) of the complete bipartite graph K_(m,n), which is the definition adopted for example by Brualdi and Ryser (1991, p. 153) (although restricted to the case m=n).

The name of the graph derives from the fact that it corresponds to the connectivity graph of a rook chess piece (which can move any number of spaces in a straight line-either horizontally or vertically, but not diagonally) on an m×n chessboard.

RooksTour

Attractive embeddings of small n×n rook graphs are illustrated above.

The graph K_m square K_n has mn vertices and mn(m+n)/2-mn edges. It is regular of vertex degree m+n-2 and has chromatic number max(m,n). Its diameter is 2 when both m,n>=2, 1 when exactly one dimension is 1 and the other exceeds 1, and 0 when m=n=1. Its girth is 3 for max(m,n)>=3. It is also perfect (since it is the line graph of a bipartite graph) and vertex-transitive.

The Latin square graph associated with a Latin square of order n has its n^2 cells as vertices. Distinct vertices are adjacent if they share a row or column or contain the same symbol. For n>=2, this graph strictly contains the n×n rook graph as a spanning subgraph. Minimum vertex colorings of the rook graph using a fixed set of n colors correspond to Latin squares of order n.

n×n rook graphs are distance-regular and geometric.

Precomputed properties of rook graphs are implemented in the Wolfram Language as GraphData[{"Rook", {m, n}}].

If m and n are relatively prime, the rook graph K_m square K_n is isomorphic to a circulant graph on mn vertices, with offsets given by all positive multiples of m or n not exceeding mn/2. The square graph K_2 square K_2=C_4 is also a circulant graph, although its dimensions are not relatively prime.

Special cases are summarized in the following table.

The following table summarizes the bipartite double graphs of the rook graph K_2 square K_n for small n. Each bipartite double graph has 4n vertices, twice the vertex count of the original rook graph.

nbipartite double graph of K_2 square K_n
22C_4
3prism graph Y_6
4tesseract graph Q_4
5Haar graph H_(558)

A closed formula for the number of 7-cycles of K_n square K_n is given by

 7c_7=n^2(n-1)(n-2)(n^4+24n^3-133n^2+134n+94)

(Voropaev and Perepechko).

The m×n rook graph has domination number gamma=min(m,n). Furthermore, its domination polynomial is given in closed form by

 D_(K_m square K_n)(x)=[(1+x)^n-1]^m-(-1)^msum_(k=0)^(m-1)(-1)^k(m; k)[(1+x)^k-1]^n

(Mertens 2024, p. 5).

Aubert and Schneider (1981) showed that rook graphs with m,n>=2 admit Hamilton decompositions, using the extended convention that permits a single perfect matching for odd vertex degree. For positive integers m and n, a rook graph is class 1 when mn is even, and class 2 when mn is odd and greater than 1. The singleton graph K_1=K_1 square K_1 is class 1.


See also

Bishop Graph, Black Bishop Graph, Circulant Graph, Grid Graph, KC Graph, King Graph, Knight Graph, Latin Square Graph, Rook Complement Graph, Square Graph, Triangular Graph, Triangular Honeycomb Rook Graph, White Bishop Graph

Portions of this entry contributed by Stan Wagon

Explore with Wolfram|Alpha

References

Aubert, J. and Schneider, B. "Décomposition de K_m+K_n en cycles hamiltoniens." Disc. Math. 37, 19-27, 1981. https://doi.org/10.1016/0012-365X(81)90136-9.Brouwer, A. E. "Hamming Graphs: Lattice Graphs." https://aeb.win.tue.nl/drg/graphs/Hamming.html.Brouwer, A. E.; Cohen, A. M.; and Neumaier, A. Distance-Regular Graphs. New York: Springer-Verlag, 1989.Brouwer, A. E. and van Lint, J. H. "Strongly Regular Graphs and Partial Geometries." In Enumeration and Design: Papers from the Conference on Combinatorics Held at the University of Waterloo, Waterloo, Ont., June 14-July 2, 1982 (Ed. D. M. Jackson and S. A. Vanstone). Toronto, Canada: Academic Press, pp. 85-122, 1984.Brualdi, R. and Ryser, H. J. §6.2.4 in Combinatorial Matrix Theory. New York: Cambridge University Press, p. 152, 1991.Godsil, C. and Royle, G. "Latin Square Graphs." §10.4 in Algebraic Graph Theory. New York: Springer-Verlag, p. 223, 2001.House of Graphs. Rook Graphs. K2, Square Graph (C4), K3 Box K2, K3 Box K3 (Paley graph), Rook graph K4 Box K4, and others.Karavaev, A. M. "FlowProblem: Statistics of Simple Cycles." https://web.archive.org/web/20161015201528/http://flowproblem.ru/cycles/statistics-of-simple-cycles.Mertens, S. "Domination Polynomial of the Rook Graph." J. Integer Seq. 27, Article 24.3.7, 2024. https://cs.uwaterloo.ca/journals/JIS/VOL27/Mertens/mertens6.html.van Dam, E. R. and Haemers, W. H. "Which Graphs Are Determined by Their Spectrum?" Lin. Algebra Appl. 373, 139-162, 2003.Voropaev, A. N. and Perepechko, S. N. "The Number of Fixed Length Cycles in an Undirected Graph: Explicit Formulae in Case of Small Lengths." Discrete Contin. Models Appl. Comput. Sci. No. 2, 6-12, 2012.

Referenced on Wolfram|Alpha

Rook Graph

Cite this as:

Weisstein, Eric W., with contributions by Stan Wagon. "Rook Graph." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/RookGraph.html

Subject classifications