Single function for standard enumeration analysis.
redist.enumpart(
adj,
unordered_path,
ordered_path,
out_path,
ndists = 2,
all = TRUE,
n = NULL,
weight_path = NULL,
lower = NULL,
upper = NULL,
init = FALSE,
read = TRUE,
total_pop = NULL,
adjlist,
population,
ndist
)
zero indexed adjacency list.
valid path to output the unordered adjacency map to
valid path to output the ordered adjacency map to
Valid path to output the enumerated districts
number of districts to enumerate
boolean. TRUE outputs all districts. FALSE samples n districts.
integer. Number of districts to output if all is FALSE. Returns districts selected from uniform random distribution.
A path (not including ".dat") to a space-delimited file containing a vector of
vertex weights, to be used along with lower
and upper
.
A lower bound on each partition's total weight, implemented by rejection sampling.
An upper bound on each partition's total weight.
Runs redist.init.enumpart. Defaults to false. Should be run on first use.
boolean. Defaults to TRUE. reads
Integer Vector. Defaults to NULL. If supplied, computes the parity.
Deprecated, use adj. zero indexed adjacency list
Deprecated, use total_pop. Integer Vector. Defaults to NULL. If supplied, computes the parity.
Deprecated, use ndists. number of districts to enumerate
List with entries district_membership and parity.