isAdjacent method to test edge intersection