NetworkX

Previous topic

networkx.generators.classic.trivial_graph

Next topic

networkx.generators.small.make_small_graph

networkx.generators.classic.wheel_graph

wheel_graph(n, create_using=None)
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.