home *** CD-ROM | disk | FTP | other *** search
- #include "tree.h"
-
- /* BREADTH_TREE_
-
- The constructor passes the start node, goal node and the number of
- operators to SEARCH_.
-
- */
-
- BREADTH_TREE_::BREADTH_TREE_(NODE_ *start, NODE_ *goal, int op)
- :SEARCH_(start, goal, op)
- {
- }
-
-
-
- /* ADD
-
- Adds a node to the search graph, without checking if it's already
- in the graph.
-
- */
-
- int BREADTH_TREE_::add(NODE_ *succ)
- {
- open.addtotail(*succ);
- return(1);
- }
-