WheelGraph
The wheel graph on n vertices — a hub joined to every vertex of an (n-1)-cycle rim.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
WheelGraph✓WheelGraph(n)vertex 1 is the hub; vertices 2..n form the rim cycle. Needs n >= 4.SageMath
enumeratio_graph(graphs.WheelGraph(n))Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer) -> value | combinatorics | always |
Details
- EdgeCount = 2(n - 1): n - 1 spokes plus the n - 1 rim edges. Vertex numbering (which vertex is the hub) is kernel-unverified against a live Wolfram session.
Examples
Scope #
Properties #
About
| Examples | 7 |
|---|---|
| Checked against | Wolfram Language 7 agreeSageMath 1 agree5 differ |
| Crosswalk | Wolfram LanguageSageMath |
Implementation
mapped
sagepackages/oracle/src/mappings.ts See also: CycleGraph, StarGraph