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