I'm trying to make a program showing step-by-step changes from Networkx algorithms. (Dijkstra, Shortest augmenting path)
Using nx.draw(G, node_size = size)
I could change the size of graph nodes, but those sizes seem to be relative to display size, which means, if I change the resulting plt.show()
figure window size, all the graph attributes (i.e. edges, labels, some texts) change according to the window size, but node sizes are fixed.
How can I make the node size change with the window size? Do I need to use my own codes from matplotlib?
image1: Initial plt.show()
result