build a graph G.add_edge(u, v, r=value) # plot the graph pos = nx.spring_layout(G, scale=3) nx.draw(G, pos) edge_labels = nx.get_edge_attributes(G,'r') ...
確定! 回上一頁