Draw the edges of the graph G
This draws only the edges of the graph G.
Parameters: | G : graph
pos : dictionary
ax : Matplotlib Axes object, optional
alpha: float :
width`: float :
edge_color: color string, or array of floats :
edge_ cmap: Matplotlib colormap :
edge_vmin,edge_vmax: floats :
style: string :
|
---|
Notes
For directed graphs, “arrows” (actually just thicker stubs) are drawn at the head end. Arrows can be turned off with keyword arrows=False. Yes, it is ugly but drawing proper arrows with Matplotlib this way is tricky.
Examples
>>> G=nx.dodecahedral_graph()
>>> edges=nx.draw_networkx_edges(G,pos=nx.spring_layout(G))
Also see the NetworkX drawing examples at http://networkx.lanl.gov/gallery.html