aryagraph.generators.classic.wheel_graph#

aryagraph.generators.classic.wheel_graph(n: int, *, directed: bool = False) → Graph[source]#

Wheel on n nodes: hub 0 joined to every node of the cycle 1 … n-1.

Directed: hub → rim arcs and a directed rim cycle 1 → 2 → … → n-1 → 1.