TOPICS
Search

Queen Graph


QueenGraphsChessboard

The m×n queen graph Q_(m,n) is a graph with mn vertices in which each vertex represents a square in an m×n chessboard, and each edge corresponds to a legal move by a queen, where m and n are positive integers.

QueensGraph

The 2×n-queen graphs have nice embeddings, illustrated above. In general, the embedding with vertices corresponding to squares of the chessboard has edges which overlap other edges when drawn as straight lines, the only nontrivial exception being the 2×2-queen graph.

Queen graphs are implemented in the Wolfram Language as GraphData[{"Queen", {m, n}}].

The following table summarizes some special cases of queen graphs.

The following table summarizes some named graph complements of queen graphs.

GG^_
(2,3)-queen graph(2,3)-knight graph
(2,4)-queen graph2P_4
(3,3)-queen graph(3,3)-knight graph

Queen graphs with mn>=3 are Hamiltonian and biconnected. The singleton graph Q_(1,1) is Hamiltonian by convention, while Q_(1,2) and Q_(2,1) are not. Up to interchange of m and n, the planar queen graphs are Q_(1,n) for n<=4 and Q_(2,2), while the regular queen graphs are Q_(1,n) and Q_(2,2). The latter is isomorphic to the tetrahedral graph K_4.

Up to interchange of m and n, the only perfect queen graphs are Q_(1,n), Q_(2,n), and Q_(3,3).

A closed formula for the number c_4 of 4-cycles of Q_(n,n) is given by

 60c_4=n(n-1)(21n^3+526n^2-1709n+996)-60(3n^2-12n+4)|_1/2n_|,

where |_x_| is the floor function (Voropaev and Perepechko 2012).

Counting each Hamiltonian cycle separately from its reversal, the numbers for the n×n-queen graphs for n=2, 3, ... are 6, 3920, ... (OEIS A158663). The corresponding numbers of Hamiltonian paths, also counting reversals separately, are 24, 45856, ... (OEIS A158664).

Since each row and column of an n×n-queen graph is an n-clique, these graphs have chromatic number at least n. When n=1,5 (mod 6), n colors suffice. The chromatic numbers for n=2, 3, ... are 4, 5, 5, 5, 7, 7, 9, 10, 11, 11, 12, 13, ... (OEIS A088202).

Assume m<=n. Queen graphs Q_(m,n) are class 1 when at least one of m or n is even, and also when m and n are both odd with m<=n<=2m-1. Jarnicki et al. (2017, pp. 433-435) further proved that they are class 1 for m<=n<=(m^2-3m+2)/2. For odd m and n with n>=(2m^3-11m+18)/3, they are class 2 (Jarnicki et al. 2017, p. 433). These results leave a gap only for odd m and n satisfying max{2m-1,(m^2-3m+2)/2}<n<(2m^3-11m+18)/3. Jarnicki et al. (2017, p. 435) computationally resolved all cases with m<=9, supporting their conjecture that a queen graph is class 2 iff it is an overfull graph.


See also

Bishop Graph, Black Bishop Graph, King Graph, Knight Graph, Overfull Graph, Queens Problem, Rook Graph, Triangular Honeycomb Queen Graph, White Bishop Graph

Explore with Wolfram|Alpha

References

Burger, A. P.; Cockayne, E. J.; and Mynhardt, C. M. "Domination and Irredundance in the Queens' Graph." Disc. Math. 163, 47-66, 1997.Chandra, A. K. "Independent Permutations, as Related to a Problem of Moser and a Theorem of Pólya." J. Combin. Th. Ser. A 16, 111-120, 1974.Chvátal, V. "Coloring the Queens Graph." https://users.encs.concordia.ca/~chvatal/queengraphs.html.Cockayne, E. J. and Hedetniemi, S. T. "On the Diagonal Queens Domination Problem." J. Combin. Th. Ser. A 42, 137-139, 1986.Finozhenok, D. and Weakley, W. D. "An Improved Lower Bound for Domination Numbers of the Queen's Graph." Australasian J. Combin. 37, 295-300, 2007.Fricke, G. H.; Hedetniemi, S. M.; Hedetniemi, S. T.; McRae, A. A.; Wallis, C. K.; Jacobson, M. S.; Martin, H. W.; and Weakley, W. D. "Combinatorial Problems on Chessboards: A Brief Survey." In Proc. Seventh Quadrennial International Conference on the Theory and Applications of Graphs: Graph Theory, Combinatorics, and Algorithms, Vol. 1 (Ed. Y. Alavi and A. Schwenk). New York: Wiley, pp. 507-528, 1995.Gardner, M. The Sixth Book of Mathematical Games from Scientific American. Chicago, IL: University of Chicago Press, pp. 116-118 and 124-126, 1984.Gardner, M. The Unexpected Hanging and Other Mathematical Diversions. Chicago, IL: Chicago University Press, p. 191, 1991.Gosset, T. "The Eight Queens Problem." Mess. Math. 44, 48, 1914.House of Graphs. Queen Graphs. Singleton Graph, Tetrahedron K4, K6 - 2K2, Complement of 2P4, K9 - C8, and others.Hwang, F. K. and Lih, K. W. "Latin Squares and Superqueens." J. Combin. Th. Ser. A 34, 110-114, 1983.Jarnicki, W.; Myrvold, W.; Saltzman, P.; and Wagon, S. "Properties, Proved and Conjectured, of Keller, Mycielski, and Queen Graphs." Ars Math. Contemp. 13, 427-460, 2017. https://doi.org/10.26493/1855-3974.1143.844.Karavaev, A. M. "FlowProblem: Statistics of Simple Cycles." https://web.archive.org/web/20161015201528/http://flowproblem.ru/cycles/statistics-of-simple-cycles.Östergård, P. R. J. and Weakley, W. D. "Values of Domination Numbers of the Queen's Graph." Elec. J. Combin. 8, No. 1, R29, 2001. https://doi.org/10.37236/1573.Shapiro, H. D. "Generalized Latin Squares on the Torus," Disc. Math. 24, 63-77, 1978.Sloane, N. J. A. Sequences A088202, A158663, and A158664 in "The On-Line Encyclopedia of Integer Sequences."Vasquez, M. "New Results on the Queens n^2 Graph Coloring Problems." J. Heuristics 10, 407-413, 2004.Voropaev, A. N. and Perepechko, S. N. "The Number of Fixed Length Cycles in Undirected Graph: Explicit Formula in Case of Small Lengths." Discrete Contin. Models Appl. Comput. Sci. No. 2, 6-12, 2012. https://journals.rudn.ru/miph/article/view/8653.Wagon, S. "Graph Theory Problems from Hexagonal and Traditional Chess." College Math. J. 45, 278-287, 2014.

Referenced on Wolfram|Alpha

Queen Graph

Cite this as:

Weisstein, Eric W. "Queen Graph." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/QueenGraph.html

Subject classifications