Wolfram Language & System 10.4 (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 vertices .

gives the -dimensional grid graph with vertices .

Details and OptionsDetails and Options

  • GridGraph[{n1,n2,,nk}] gives a graph connected as a -dimensional grid with vertices in dimension 1, 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