Graph() G.add_edge(1,2) G.add_edge(2,3) nx.draw(G,with_labels=True) 上面的代碼會給我這個帶有節點名稱作為標籤的圖表。 p> 如果我使用自定義標籤: labels ...
確定! 回上一頁