GraphTheory[SpecialGraphs] - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

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

GraphTheory[SpecialGraphs]

 WebGraph
 construct web graph

 Calling Sequence WebGraph(a, b)

Parameters

 a - positive integer >=3 b - positive integer

Description

 • The WebGraph(a,b) command returns the web graph with parameters a and b. Namely it returns the Cartesian product of CycleGraph(a) and PathGraph(b).

Examples

 > $\mathrm{with}\left(\mathrm{GraphTheory}\right):$
 > $\mathrm{with}\left(\mathrm{SpecialGraphs}\right):$
 > $W≔\mathrm{WebGraph}\left(7,3\right)$
 ${W}{≔}{\mathrm{Graph 1: an undirected unweighted graph with 21 vertices and 35 edge\left(s\right)}}$ (1)
 > $\mathrm{DrawGraph}\left(W\right)$

 See Also

## Was this information helpful?

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