or edges in a loop or in another function and then pass the list to either. G.subgraph() for induced subgraphs given nodes; or networkx.Graph() given edges.
確定! 回上一頁