I have the following graph in networkx:
networkx
import matplotlib.pyplot as plt import networkx as nx G = nx.Graph() G.add_edge(1, 2, weight = 1) G.add_