Change adjacent points to Set<String>.