Implement all the functions for computing IRV margins and bounds.
|
number, dict, list, Node
|
|
|
number, dict, list
|
irv(election,
rules=0)
Perform IRV using rules and return the winner, vote
counts, and elimination order. |
source code
|
|
|
number
|
irv_simple_lb(election,
rules=1)
Compute and return an IRV margin lower bound using the elimination
sets dictated by the rules. |
source code
|
|
|
number
|
irv_margin(election,
winner=None,
elim_order=None,
ub=None,
trace=False,
timeout=1e+75)
Compute the exact IRV margin of the election. |
source code
|
|
|
number
|
irv_lb(election,
eliminations=None,
trace=False)
Compute and return an IRV margin lower bound and the optimal sequence
of eliminations that gives it. |
source code
|
|
|
number
|
irv_ub(election,
rules=1,
winner=None,
elim_order=None,
trace=False)
Compute and return an IRV margin upper bound. |
source code
|
|