Draw node labels on the graph G.
Parameters : | G : graph
pos : dictionary, optional
font_size : int
font_color : string
font_family : string
font_weight : string
alpha : float
ax : Matplotlib Axes object, optional
|
---|
Examples
>>> G=nx.dodecahedral_graph()
>>> labels=nx.draw_networkx_labels(G,pos=nx.spring_layout(G))
Also see the NetworkX drawing examples at http://networkx.lanl.gov/gallery.html