@open_file(0, mode='rb')
def read_pajek(path, encoding='UTF-8'):
    lines = (line.decode(encoding) for line in path)
    return parse_pajek(lines)
.. todo::
dataset/ETHPy150Open networkx/networkx/networkx/readwrite/pajek.py/read_pajek--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/preprocessing.py/Pipeline.apply