| Trees | Indices | Help |
|
|---|
|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
value The number associated with this node. |
|||
|
leaves Possibilities nodes corresponding to the 10 possible significant digits which could be accepted by this node. |
|||
|
accept Whether this node is an "accepting state". |
|||
|
na The number of accepting states in this node and child nodes. |
|||
|
|||
Return >>> a = Possibilities.create([1,2,3]) >>> b = Possibilities.create([1,2,3]) >>> a == a True >>> a == b False |
Return a new Possibilities object which can accept the given number. Returns 1 if the number was not previously accepted, else 0. For example: >>> p = Possibilities.create([42]) >>> p.add(534) 1 >>> p.na 2 >>> p.add(534) 0 >>> p.na 2 |
|
|||
valueThe number associated with this node. This is the number which would be accepted by this node, if it were an accepting state, or -1 for the root node. |
acceptWhether this node is an "accepting state". For example, the Possibilities object corresponding to the set [51,61] has an internal node with the value '1' which is not an accepting state, since the number 1 is not in the set. |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Fri Mar 9 18:36:03 2007 | http://epydoc.sourceforge.net |