hash on edges
remap the interfaces back to nodes, and integers