Beispiel #1
0
 def bfs_path(self,
              init_state,
              max_depth=None,
              max_states=None):
     def create_iterator():
         return BreadthFirstIterator2(self,
                                      init_state,
                                      max_depth,
                                      max_states)
     domain = Domain(None, False)
     domain.create_iterator = create_iterator
     return domain
Beispiel #2
0
 def iterate_states(self, depth, return_depth=False):
     domain = Domain(None, False)
     domain.create_iterator = lambda: StatesIterator(self, depth, return_depth)
     return domain