Module search :: Class SearchNode
[frames] | no frames]

Class SearchNode

A node in a search tree

Instance Methods
 
__init__(self, action, state, parent)
 
path(self)
Returns: list of (action, state) pairs from root to this node
 
inPath(self, s)
Returns: True if state s is in the path from here to the root
 
__repr__(self)
 
__str__(self)
Instance Variables
  action
Action that moves from parent to state
Method Details

path(self)

 
Returns:
list of (action, state) pairs from root to this node

inPath(self, s)

 
Returns:
True if state s is in the path from here to the root