I can dynamically change the node size or node color by passing a list of values to the draw_network function. But how can i do it with ArrowStyle? Say I wanted to change the ArrowStyle (width & length) based on a list of values. The arrowsize doesn't either accept anything else than a single int value.
Here is an example code:
import matplotlib.patches
import networkx as nx
G = nx.DiGraph()
G.add_edge("reddit", "youtube")
G.add_edge("reddit", "google")
G.add_edge("google", "reddit")
G.add_edge("youtube", "reddit")
print(G.adj)
testArrow = matplotlib.patches.ArrowStyle.Fancy(head_length=.4, head_width=.4, tail_width=.1)
nx.draw_networkx(G,
arrowsize=30,
node_size=[5000,50,300],
arrowstyle=testArrow)

