NetworkX

Previous topic

networkx.from_dict_of_dicts

Next topic

networkx.from_edgelist

networkx.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