NetworkX

Previous topic

trivial_graph

Next topic

make_small_graph

wheel_graph

wheel_graph(n, create_using=None)[source]

Return the wheel graph: a single hub node connected to each node of the (n-1)-node cycle graph.

Node labels are the integers 0 to n - 1.