QueensGraph - Maple Help

GraphTheory[SpecialGraphs]

 QueensGraph
 construct queen's graph

 Calling Sequence QueensGraph(m,n)

Parameters

 m, n - positive integers

Description

 • 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.

Examples

 > $\mathrm{with}\left(\mathrm{GraphTheory}\right):$
 > $\mathrm{with}\left(\mathrm{SpecialGraphs}\right):$
 > $R≔\mathrm{QueensGraph}\left(4,6\right)$
 ${R}{≔}{\mathrm{Graph 1: an undirected unweighted graph with 24 vertices and 148 edge\left(s\right)}}$ (1)
 > $\mathrm{IsPlanar}\left(R\right)$
 ${\mathrm{false}}$ (2)
 > $\mathrm{DrawGraph}\left(R\right)$

Compatibility

 • The GraphTheory[SpecialGraphs][QueensGraph] command was introduced in Maple 2021.