King's graph | |
Vertices: | nm |
Edges: | 4nm-3(n+m)+2 |
Chromatic Number: | 4 min(m,n)>1 |
Chromatic Index: | 8 min(m,n)>2 |
Girth: | 3 min(m,n)>1 |
In graph theory, a king's graph is a graph that represents all legal moves of the king chess piece on a chessboard where each vertex represents a square on a chessboard and each edge is a legal move. More specifically, an
n x m
n x m
For an
n x m
nm
4nm-3(n+m)+2
n x n
n2
(2n-2)(2n-1)
The neighbourhood of a vertex in the king's graph corresponds to the Moore neighborhood for cellular automata.[3] A generalization of the king's graph, called a kinggraph, is formed from a squaregraph (a planar graph in which each bounded face is a quadrilateral and each interior vertex has at least four neighbors) by adding the two diagonals of every quadrilateral face of the squaregraph.[4]
In the drawing of a king's graph obtained from an
n x m
(n-1)(m-1)
(n-1)(m-1)-4
2 x n
n
m
(n-1)(m-1)-4