def clean(outname): return [(norm(src), norm(dst), sig) for (src, dst, dots, sig) in group(list(open(outname)), 4)]
def ice2r(): return dict(((short[r1],short[r2]),float(value)) for r1,r2,value in group(list(open('dist-11-100-1000-r-path-gor.txt')), 3) if not any(r in ['Scotland\n', 'Wales\n'] for r in [r1,r2]))