NetworkX
2.3
Install
Tutorial
Reference
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
YAML
SparseGraph6
Pajek
Pajek
networkx.readwrite.pajek.read_pajek
networkx.readwrite.pajek.write_pajek
networkx.readwrite.pajek.parse_pajek
networkx.readwrite.pajek.generate_pajek
GIS Shapefile
Drawing
Randomness
Exceptions
Utilities
Glossary
Developer Guide
Release Log
License
Credits
Citing
Bibliography
Examples
NetworkX
Docs
»
Reference
»
Reading and writing graphs
»
Pajek
»
networkx.readwrite.pajek.parse_pajek
networkx.readwrite.pajek.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
Return type:
NetworkX graph
See also
read_pajek()