创建一个图import networkx as nx g = nx. ... 通过nx.path_graph(n)加一系列连续的边 ... nx.draw_circular(g) #点的分布形成一个环; nx.draw_spectral(g).
確定! 回上一頁