GraphGeneratorWheel Method |
Returns a wheel graph on V vertices.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static Graph Wheel(
int V
)
Parameters
- V
- Type: SystemInt32
the number of vertices in the wheel
Return Value
Type:
Grapha wheel graph on
V vertices: a single vertex connected to
every vertex in a cycle on
V-1 vertices
See Also