GraphTheory[SpecialGraphs]
WheelGraph
construct wheel graph
Calling Sequence
Parameters
Description
Examples
WheelGraph(n)
n
-
positive integer
The WheelGraph(n) function creates the wheel graph on n+1 vertices.
with⁡GraphTheory:
with⁡SpecialGraphs:
W≔WheelGraph⁡5
W≔Graph 1: an undirected graph with 6 vertices and 10 edge(s)
Edges⁡W
0,1,0,2,0,3,0,4,0,5,1,2,1,5,2,3,3,4,4,5
DrawGraph⁡W
See Also
GearGraph
SpecialGraphs
Download Help Document