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
Translate this page: