Install
Tutorial
Reference
Releases
Developer
Gallery
Guides
Home Page
GitHub
v2.7.1
devel (latest)
current (stable)
Introduction
Graph types
Algorithms
Functions
Graph generators
Linear algebra
Converting to and from other data formats
Relabeling nodes
Reading and writing graphs
Adjacency List
Multiline Adjacency List
Edge List
GEXF
GML
Pickle
GraphML
JSON
LEDA
SparseGraph6
Pajek
GIS Shapefile
Matrix Market
Drawing
Randomness
Exceptions
Utilities
Glossary
parse_pajek
¶
parse_pajek
(
lines
)
[source]
¶
Parse Pajek format graph from string or iterable.
Parameters
lines
string or iterable
Data in Pajek format.
Returns
G
NetworkX graph
See also
read_pajek