Note
This documents the development version of NetworkX. Documentation for the current release can be found here.
to_edgelist
Returns a list of edges in the graph.
G (graph) – A NetworkX graph
nodelist (list) – Use only nodes specified in nodelist