Package org.aisearch.data

Examples of org.aisearch.data.Path.containsNode()


      INode currentNode = bestPath.getLastEdge().getTargetNode();
      if (goalTest.isGoal(currentNode))
        return bestPath;
      List<Path> newPaths = new ArrayList<Path>();
      for (Edge edge : currentNode.generateSuccessors()) {
        if (bestPath.containsNode(edge.getTargetNode()))
          continue;
        newPaths.add(new Path(bestPath, edge));
      }
      queueInserter.insert(queue, newPaths);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.