Add a star.
The first node in nlist is the middle of the star. It is connected to all other nodes in nlist.
Parameters: | nlist : list
data : list or iterable, optional
|
---|
Examples
>>> G=nx.Graph()
>>> G.add_star([0,1,2,3])
>>> G.add_star([10,11,12],data=['a','b'])