calcAdjacencies working