📅  最后修改于: 2022-03-11 14:57:35.844000             🧑  作者: Mango
import networkx as nx
import matplotlib.pyplot as plt
G=nx.Graph()
# Add nodes and edges
G.add_edge("Node1", "Node2")
nx.draw(G, with_labels=True)