I would like to assign node weights to each node in an undirected graph. I use the following MWE:
import sys
import matplotlib.pyplot as plt
import networkx as nx
G = nx.Graph()
G.add_node(0)
G.add_node(1, weight=2)
G.add_node(2, weight=3)
nx.draw(G, with_labels=True)
plt.show()
Then I have a figure of the following form:

I would like to plot a graph with the weights given in a new color next to the nodes, such as:

What is the easiest way to implement this? On SO the materials are mostly for edge weights, or changing node sizes w.r.t. the node weights.
