NetworkX

Previous topic

nodes_iter

Next topic

number_of_edges

edges

edges(G, nbunch=None)[source]

Return list of edges adjacent to nodes in nbunch.

Return all edges if nbunch is unspecified or nbunch=None.

For digraphs, edges=out_edges