fixed getAdjacency method overlap