networkx.readwrite.pajek.parse_pajek

parse_pajek(lines)[source]

Parse Pajek format graph from string or iterable.

Parameters
linesstring or iterable

Data in Pajek format.

Returns
GNetworkX graph

See also

read_pajek