to_edgelist#

to_edgelist(G, nodelist=None)[source]#

返回图中的边列表。

参数:
G

一个 NetworkX 图

nodelist列表

仅使用 nodelist 中指定的节点