NetworkX

Previous topic

from_dict_of_lists

Next topic

from_edgelist

to_edgelist

to_edgelist(G, nodelist=None)[source]

Return a list of edges in the graph.

Parameters :

G : graph

A NetworkX graph

nodelist : list

Use only nodes specified in nodelist