Grid Graph
A two-dimensional grid graph, also known as a square grid graph, is an
lattice
graph
that is the graph
Cartesian product
of path
graphs on
and
vertices.
Brouwer et al. (1989, p. 440) use the term "
grid"
to refer to the line graph
of the
complete bipartite graph
, known in
this work as the rook graph
.
The grid graph
is implemented in the Wolfram
Language as GridGraph[m,
n, ...]. Precomputed properties for a number of grid graphs are available
using GraphData[
"Grid",
m, ..., r,
...![]()
].
A grid graph
has
vertices and
edges.
A grid graph is Hamiltonian if either the number of rows or columns is even (Skiena 1990, p. 148). Grid graphs are also bipartite (Skiena 1990, p. 148).
The numbers of directed Hamiltonian paths on the
grid graph for
, 2, ... are
given by 1, 8, 40, 552, 8648, 458696, 27070560, ... (OEIS A096969).
In general, the numbers of Hamiltonian paths on the
grid graph
for fixed
are given by a linear recurrence.
The numbers of directed Hamiltonian cycles on the
grid graph for
, 2, ... are
0, 2, 0, 12, 0, 2144, 0, 9277152, ... (OEIS A143246).
In general, the numbers of Hamiltonian cycles on the
grid graph
for fixed
are given by a linear recurrence.
The numbers of (undirected) graph cycles on the
grid graph for
, 2, ... are
0, 1, 13, 213, 9349, 1222363, ... (OEIS A140517).
In general the number
of
-cycles on the
grid graph is given by
for
odd and by a quadratic
polynomial in
for
even, with the
first few being
|
(1)
| |||
|
(2)
| |||
|
(3)
| |||
|
(4)
| |||
![]() |
(5)
| ||
![]() |
(6)
| ||
![]() |
(7)
|
(E. Weisstein, Nov. 16, 2014).
The domination number of
is
given by
|
(8)
|
for
, as conjectured by Chang (1992), confirmed
up to an additive constant by Guichard (2004), and proved by Gonçalves et
al. (2011). Gonçalves et al. (2011) give a piecewise formula for
, but the expression given for
is not correct
in all cases. A correct formula for
attributed
to Hare appears as formula (6) in Chang and Clark (1993), which however then proceeds
to give an incorrect reformulation as formula (14).
A generalized grid graph can also be defined as
.
A generalized grid graph has chromatic number
2, except the degenerate case of the singleton graph,
which has chromatic number 1. Special cases are
illustrated above and summarized in the table below.
| grid graph | special case |
| path graph | |
| ladder graph | |
| square graph | |
| domino graph | |
| cubical graph | |
| hypercube graph |



grid graph


