Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

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