Draw the edges of the graph G.
This draws only the edges of the graph G.
Parameters : | G : graph
pos : dictionary
edgelist : collection of edge tuples
width : float
edge_color : color string, or array of floats
style : string
alpha : float
edge_ cmap : Matplotlib colormap
edge_vmin,edge_vmax : floats
ax : Matplotlib Axes object, optional
arrows : bool, optional (default=True)
|
---|
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