@pimms.value<EOL><INDENT>def neighborhoods(labels, faces, vertex_faces):<DEDENT>
faces = faces.T<EOL>nedges = [[((f[<NUM_LIT:0>], f[<NUM_LIT:1>]) if f[<NUM_LIT:2>] == u else (f[<NUM_LIT:1>], f[<NUM_LIT:2>]) if f[<NUM_LIT:0>] == u else (f[<NUM_LIT:2>], f[<NUM_LIT:0>]))<EOL>for f in faces[list(fs)]]<EOL>for (u, fs) in zip(labels, vertex_faces)]<EOL>return tuple([Tesselation._order_neighborhood(nei) for nei in nedges])<EOL>
tess.neighborhoods is a tuple whose contents are the neighborhood of each vertex in the
tesselation.