Combinatorica`
Combinatorica`

GridGraph

As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. >>

GridGraph[n,m]

constructs an n*m grid graph, the product of paths on n and m vertices.

GridGraph[p,q,r]

constructs a p*q*r grid graph, the product of GridGraph[p,q] and a path of length r.

Details and Options

See Also

GridGraph  GraphProduct  Path

Tutorials