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 :
edgelist: list :
node_size: scalar or array :
node_color: color string, or array of floats :
node_shape: string :
alpha: float :
cmap: Matplotlib colormap :
vmin,vmax: floats :
width`: float :
|
---|
Notes
Any keywords not listed above are passed through to Matplotlib’s scatter function.
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