While working with NetworkX, I managed to plot a graph that shows the node size corresponding to a node attribute. To produce a consistent plot, I want to show the node size in the legend. Is there a pre-implemented way to add a legend with a defined number (e.g., four) of node sizes with the corresponding node attribute?
I imagine something similar to the appended legend.

