NetworkX
parse_pajek()
Parse Pajek format graph from string or iterable.
Data in Pajek format.
See also
read_pajek