GraphTheory[SpecialGraphs][GridGraph] - 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]

GraphTheory[SpecialGraphs][TorusGridGraph]

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:

G:=GridGraph5,3

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

(1)

IsBipartiteG

true

(2)

DrawGraphG

H:=TorusGridGraph5,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