摘要: 主要是用来画图 import matplotlib.pyplot as plt import networkx as nx G=nx.Graph() #创造空的无向图 H = nx.path_graph(9) #定义结点为1-9 G.add_nodes_from(H) nx.draw(G, with 阅读全文