NetworkX
1.10.1
Overview
Download
Installing
Tutorial
Reference
Introduction
Graph types
Algorithms
Functions
Graph generators
Linear algebra
Converting to and from other data formats
To NetworkX Graph
Dictionaries
Lists
to_dict_of_lists
from_dict_of_lists
to_edgelist
from_edgelist
Numpy
Scipy
Pandas
Relabeling nodes
Reading and writing graphs
Drawing
Exceptions
Utilities
License
Citing
Credits
Glossary
Reference
Overview
Introduction
Graph types
Algorithms
Functions
Graph generators
Linear algebra
Converting to and from other data formats
To NetworkX Graph
Dictionaries
Lists
Numpy
Scipy
Pandas
Reading and writing graphs
Drawing
Exceptions
Utilities
License
Citing
Credits
Glossary
Testing
Developer Guide
History
Bibliography
NetworkX Examples
NetworkX
Docs
»
Reference
»
Reference
»
Converting to and from other data formats
»
to_edgelist
to_edgelist
¶
networkx.convert.
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