| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
Node
A basic tree node with a value and children and IRV-specific methods.
| Instance Methods | |||
|
|||
| string |
|
||
| boolean |
|
||
| Node |
|
||
|
|||
|
|||
|
|||
| set |
|
||
| number |
|
||
| iterator |
|
||
| iterator |
|
||
|
|||
| Node |
|
||
| Node |
|
||
|
Inherited from |
|||
| Instance Variables | |
| number |
value The value of the node, including the sum of the values of its children. |
| Properties | |
|
Inherited from |
| Method Details |
Create a new node with an optional value and children nodes.
|
Return a representation of self.
|
Return
|
Return the child node, creating it first, if necessary.
|
Delete the child.
|
Remove the child c and merge c's children with self's children.
|
Reduce the ballot tree modulo an elimination order. Assuming that the elimination order of the election is
|
Return a set of children names.
|
Return the number of children.
|
Iterate over the set of children.
|
Iterate over the dictionary of children.
|
This always raises an exception. Shallow copies are not permitted.
|
Return a deep copy of the node.
|
Return a deep copy of the node.
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Nov 23 18:31:26 2011 | http://epydoc.sourceforge.net |