Change edge thickness based on weight [networkx]
When using draw_networkx_edges()
networkx, is it possible to change the thickness of the ribs based on their weight?
Here I am assuming that the weights are less than some known number, say k.
+3
Bob
source
to share
1 answer
One way to do this is to classify the edges as shown in this example .
step 1: add weights to the edges
Step 2: classify the edgelist based on weight
Step 3: go to the edgelist in draw_networkx_edges
I came across this from another SO thread .
+1
learner
source
to share