nx.draw(G, with_labels=True) # 画图,with_labels表示图中带有节点名称label plt.show() ... pos = nx.circular_layout(G) # 环形布局 nx.draw(G,
確定! 回上一頁