GraphTheory[SpecialGraphs]
GridGraph
construct grid graph
TorusGridGraph
construct torus grid graph
Calling Sequence
Parameters
Description
Examples
GridGraph(m,n)
TorusGridGraph(m,n)
m, n
-
positive integers
The GridGraph(m,n) command creates the m by n grid graph on m*n vertices.
The TorusGridGraph(m,n) creates the m by n torus grid graph on m*n vertices.
See Also
SpecialGraphs
Download Help Document