Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


gives the grid graph with m×n vertices .

gives the -dimensional grid graph with n1×n2××nk vertices .

Details and OptionsDetails and Options

  • GridGraph[{n1,n2,,nk}] gives a graph connected as a -dimensional grid with n1 vertices in dimension 1, n2 vertices in dimension 2, etc.
  • GridGraph[{n1,n2,,nk},DirectedEdges->True] gives a directed grid graph.
  • GridGraph takes the same options as Graph.
Introduced in 2010