from node import Node from problem import Problem from search import Search from result import Result p = Problem() s = Search(p) r = s.BiDirectional() print(r.status) path = r.path print(path) print("number of visited : ") print(r.expandedNodes) print("number of expansions : ") print(r.expansions)
from problem import Problem0 from search import Search field = [[1, 1, 0, 0], [0, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]] p = Problem0(4, 4, field) search = Search(p) r = search.BiDirectional() print(r.path)