to_edgelist()
Returns a list of edges in the graph.
A NetworkX graph
Use only nodes specified in nodelist