NetworkX

Previous topic

networkx.generators.classic.path_graph

Next topic

networkx.generators.classic.trivial_graph

networkx.generators.classic.star_graph

networkx.generators.classic.star_graph(n, create_using=None)

Return the Star graph with n+1 nodes: one center node, connected to n outer nodes.

Node labels are the integers 0 to n.