networkx.readwrite.pajek.
parse_pajek
Parse Pajek format graph from string or iterable.
See also
read_pajek()