GraphTheory[SpecialGraphs]
BishopsGraph
construct bishop's graph
Calling Sequence
Parameters
Description
Examples
Compatibility
BishopsGraph(m,n)
m, n
-
positive integers
The BishopsGraph(m,n) command creates the m by n bishop's graph on m*n vertices. This is the bipartite graph which represents all legal moves of the bishop chess piece on an m by n chessboard.
An m by n bishop's graph has 4mn−6m−6n+8 edges when m and n are both greater than 1, and zero edges otherwise.
withGraphTheory:
withSpecialGraphs:
B≔BishopsGraph4,6
B≔Graph 1: an undirected graph with 24 vertices and 52 edge(s)
IsPlanarB
false
IsConnectedB
The two connected components of the bishop's graph correspond to the squares reachable by the white bishop and the black bishop.
ConnectedComponentsB
1:1,1:3,1:5,2:2,2:4,2:6,3:1,3:3,3:5,4:2,4:4,4:6,1:2,1:4,1:6,2:1,2:3,2:5,3:2,3:4,3:6,4:1,4:3,4:5
DrawGraphB
The GraphTheory[SpecialGraphs][BishopsGraph] command was introduced in Maple 2023.
For more information on Maple 2023 changes, see Updates in Maple 2023.
See Also
ChromaticNumber
IsPlanar
KingsGraph
KnightsGraph
QueensGraph
RooksGraph
SpecialGraphs
Download Help Document