@open_file(0, mode='rb')
def read_leda(path, encoding='UTF-8'):
 lines = (line.decode(encoding) for line in path)
 G = parse_leda(lines)
 return G

@ open_file ( 0 , mode = 'rb' ) def read_leda ( path , encoding = 'UTF-8' ) : lines = ( line . decode ( encoding ) for line in path ) G = parse_leda ( lines ) return G
read graph in leda format from path .