G.add_node('apple', color='red'). G.add_edge(1, 2, capacity=3). G.add_edge('two', 3.0, weight=2.5). # add nodes and edges from an iterable.
確定! 回上一頁