NetworkX

Previous topic

networkx.convert.from_dict_of_lists

Next topic

networkx.convert.from_edgelist

networkx.convert.to_edgelist

to_edgelist(G, nodelist=None)

Return a list of edges in the graph.

Parameters:

G : graph

A NetworkX graph

nodelist : list

Use only nodes specified in nodelist