KingsGraph - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


GraphTheory[SpecialGraphs]

  

KingsGraph

  

construct king's graph

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

KingsGraph(m,n)

Parameters

m, n

-

positive integers

Description

• 

The KingsGraph(m,n) command creates the m by n king's graph on m*n vertices. This is the graph which represents all legal moves of the king chess piece on an m by n chessboard.

Examples

> 

with⁡GraphTheory:

> 

with⁡SpecialGraphs:

> 

R≔KingsGraph⁡4,6

R≔Graph 1: an undirected graph with 24 vertices and 68 edges

(1)
> 

IsPlanar⁡R

false

(2)
> 

DrawGraph⁡R

Compatibility

• 

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

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

See Also

BishopsGraph

ChromaticNumber

IsPlanar

KnightsGraph

QueensGraph

RooksGraph

SpecialGraphs