to_edgelist# to_edgelist(G, nodelist=None)[source]# Returns a list of edges in the graph. Parameters: GgraphA NetworkX graph nodelistlistUse only nodes specified in nodelist