Calculate Edges Removed Compactness
comp_edges_rem(plans, shp, adj)
A redist_plans
object or plans_matrix where each row indicates a district assignment and each column is a plan.
A redist_map
object, tibble, or data frame with an sf
geometry column.
Zero-indexed adjacency list. Not required if a redist_map
is supplied for shp
.
A numeric vector. Can be shaped into a district-by-plan matrix.
Matthew P. Dube and Jesse Tyler Clark. 2016. Beyond the circle: Measuring district compactness using graph theory. In Annual Meeting of the Northeastern Political Science Association