📜  python networkx 示例 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:18.983000             🧑  作者: Mango

代码示例1
import networkx as nx
import matplotlib.pyplot as plt
G = nx.Graph()
G.add_edge(1,2)
G.add_edge(1,3)
nx.draw(G, with_labels=True)
plt.show()