sample fix for calculateAdjacencies