GridGraph - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


GraphTheory[SpecialGraphs]

  

GridGraph

  

construct grid graph

  

TorusGridGraph

  

construct torus grid graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GridGraph(m,n)

TorusGridGraph(m,n)

Parameters

m, n

-

positive integers

Description

• 

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.

Examples

withGraphTheory:withSpecialGraphs:

GGridGraph5,3

GGraph 1: an undirected graph with 15 vertices and 22 edge(s)

(1)

IsBipartiteG

true

(2)

DrawGraphG

HTorusGridGraph5,3:

IsBipartiteH

false

(3)

DrawGraphH

See Also

SpecialGraphs