GraphTheory[SpecialGraphs]
WebGraph
construct web graph
Calling Sequence
Parameters
Description
Examples
WebGraph(a, b)
a
-
positive integer with a≥3
b
positive integer
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).
with⁡GraphTheory:
with⁡SpecialGraphs:
W≔WebGraph⁡7,3
W≔Graph 1: an undirected graph with 21 vertices and 35 edge(s)
DrawGraph⁡W
See Also
CycleGraph
PathGraph
SpecialGraphs
Download Help Document