Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

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()