edges#

edges(G, nbunch=None)[源代码]#

返回与 nbunch 中的节点关联的边的视图。

如果未指定 nbunch 或 nbunch=None,则返回所有边。

对于有向图,边 = 出边 (out_edges)

此函数封装了 G.edges 属性。