Working on adjacency (using distances)