#adding a second node. G.add_node(2) #adding an edge between the two nodes (undirected) G.add_edge(1,2) nx.draw(G, with_labels=True).
確定! 回上一頁