add_star(G_to_add_to, nodes_for_star, **attr)[source]

The first node in nodes_for_star is the middle of the star. It is connected to all other nodes.
>>> G = nx.Graph()