test getDistanceForTwoAdjacentVertices passed