GraphTheory[SpecialGraphs]
QueensGraph
construct queen's graph
Calling Sequence
Parameters
Description
Examples
Compatibility
QueensGraph(m,n)
m, n
-
positive integers
The QueensGraph(m,n) command creates the m by n queen's graph on m*n vertices. This is the graph which represents all legal moves of the queen chess piece on an m by n chessboard.
with⁡GraphTheory:
with⁡SpecialGraphs:
R≔QueensGraph⁡4,6
R≔Graph 1: an undirected graph with 24 vertices and 148 edge(s)
IsPlanar⁡R
false
DrawGraph⁡R
The GraphTheory[SpecialGraphs][QueensGraph] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
See Also
BishopsGraph
ChromaticNumber
IsPlanar
KingsGraph
KnightsGraph
RooksGraph
SpecialGraphs
Download Help Document