Draw the nodes of the graph G.
This draws only the nodes of the graph G.
Parameters: | G : graph
pos : dictionary
ax : Matplotlib Axes object, optional
nodelist : list, optional
node_size : scalar or array
node_color : color string, or array of floats
node_shape : string
alpha : float
cmap : Matplotlib colormap
vmin,vmax : floats
linewidths : [None | scalar | sequence]
label : [None| string]
|
---|---|
Returns: | matplotlib.collections.PathCollection :
|
Examples
>>> G=nx.dodecahedral_graph()
>>> nodes=nx.draw_networkx_nodes(G,pos=nx.spring_layout(G))
Also see the NetworkX drawing examples at http://networkx.lanl.gov/gallery.html