For precincts which have no adjacent precincts, this suggests the nearest precinct as a friend to add. This is useful for when a small number of precincts are disconnected from the remainder of the geography, such as an island.
suggest_neighbors(shp, adj, idx, neighbors = 1)
an sf shapefile
an adjacency list
Optional. Which indices to suggest neighbors for. If blank, suggests for those with no neighbors.
number of neighbors to suggest
tibble with two columns of suggested rows of shp to connect in adj