alarm-redist / redist

Simulation methods for legislative redistricting.
https://alarm-redist.github.io/redist/
GNU General Public License v2.0
66 stars 23 forks source link

How to create adjacency list for non-contiguous geographic areas #133

Closed apantazi closed 2 years ago

apantazi commented 2 years ago

I'm dealing with Florida congressional maps and trying to figure out what the best way is to coerce an adjacency object for non-contiguous parts of the state (namely, islands across the state and particularly near the Florida Keys). Do I have to edit the adjacency object by hand or are there easier ways to do it?

CoryMcCartan commented 2 years ago

Yep, you'll have to manually fix it. However, the geomander package from our own @christopherkenny provides some functions that make this super easy. suggest_neighbors() and add_edge() in particular should be useful.