for v in graph:
    print('%s \xe2\x87\xa2 %s:' % (v, end))
path = None
for path in pathiter(graph, v, end):
    print('\t' + ' \xe2\x86\x92 '.join(path))
if path is None:
    pass
Расширение пути из графа