You can currently do both of those with multiple calls to
draw_networkx_nodes(...,nodelist=)
or
draw_networkx_edges(...,edgelist=)
specifying only the nodes or edges you want drawn.
The networkx maptlotlib drawing module needs a redesign to
include the ability to handle individual node and edge attributes.
But that hasn't happened yet...
Aric
On Feb 25, 2:52 pm, Aric Hagberg <ahagb...@gmail.com> wrote:
It looks like the current version does this fine and that the
documentation is in error. Nick, try the following:
import matplotlib.pyplot as plt
import numpy as np
import networkx as nx
g = nx.generators.complete_graph(3)
pos = nx.layout.spring_layout(g)
edgewidths = [1,3,5]
edgecolors = [(1,0,0,.5), (1,0,0,1),(0,0,1,1)]
nodesizes = np.array([1, .5, 2]) * 300
nx.draw_networkx_edges(g, pos, width=edgewidths,
edge_color=edgecolors)
nx.draw_networkx_nodes(g, pos, node_size=nodesizes,
linewidth=edgewidths,
node_color=edgecolors)
plt.show()
Chris