207-networkx

1
2
3
4
5
6
7
import networkx as nx
import matplotlib.pyplot as plt

G = nx.Graph()
G.add_edge(1, 2)
nx.draw(G, with_labels=True)
plt.show()