@open_file(0, mode='rb')
def read_pajek(path, encoding='UTF-8'):
    lines = (line.decode(encoding) for line in path)
    return parse_pajek(lines)
Read graph in Pajek format from path.
dataset/ETHPy150Open networkx/networkx/networkx/readwrite/pajek.py/read_pajek