GraphTheory[SpecialGraphs] - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Discrete Mathematics : Graph Theory : GraphTheory Package : SpecialGraphs : GraphTheory/SpecialGraphs/GridGraph

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

G:=Graph 1: an undirected unweighted graph with 15 vertices and 22 edge(s)

(1)

IsBipartiteG

true

(2)

DrawGraphG

HTorusGridGraph5,3:

IsBipartiteH

false

(3)

DrawGraphH

See Also

SpecialGraphs

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam