WheelGraph - Maple Help

GraphTheory[SpecialGraphs]

 WheelGraph
 construct wheel graph

 Calling Sequence WheelGraph(n)

Parameters

 n - positive integer

Description

 • The WheelGraph(n) function creates the wheel graph on n+1 vertices.

Examples

 > $\mathrm{with}\left(\mathrm{GraphTheory}\right):$
 > $\mathrm{with}\left(\mathrm{SpecialGraphs}\right):$
 > $W≔\mathrm{WheelGraph}\left(5\right)$
 ${W}{≔}{\mathrm{Graph 1: an undirected unweighted graph with 6 vertices and 10 edge\left(s\right)}}$ (1)
 > $\mathrm{Edges}\left(W\right)$
 $\left\{\left\{{0}{,}{1}\right\}{,}\left\{{0}{,}{2}\right\}{,}\left\{{0}{,}{3}\right\}{,}\left\{{0}{,}{4}\right\}{,}\left\{{0}{,}{5}\right\}{,}\left\{{1}{,}{2}\right\}{,}\left\{{1}{,}{5}\right\}{,}\left\{{2}{,}{3}\right\}{,}\left\{{3}{,}{4}\right\}{,}\left\{{4}{,}{5}\right\}\right\}$ (2)
 > $\mathrm{DrawGraph}\left(W\right)$