Uses of Class
solver.Node

Packages that use Node
Package
Description
Package for solving puzzles.
  • Uses of Node in solver

    Methods in solver that return types with arguments of type Node
    Modifier and Type
    Method
    Description
    Node.expand()
    Expands the node by generating all possible next states from the current state.
    Node.getParent()
    Returns the parent of the node.
    BreadthFirstSearchModified.solve(puzzle.State<T> state)
    Searches for the shortest solution for the puzzle starting from the state provided.
    BreadthFirstSearchModified.solveAndPrintSolution(puzzle.State<T> state)
    Searches for the shortest solution for the puzzle starting from the state provided, and it also prints the solution to the standard output.
    Constructors in solver with parameters of type Node
    Modifier
    Constructor
    Description
     
    Node(puzzle.State<T> state, Node<T> parent, T move)
    Creates a Node with a parent node.