public double getPathCost() { return pathCost; }
/** * * @param n * @return the cost, traditionally denoted by g(n), of the path from the * initial state to the node, as indicated by the parent pointers. */ public double g(Node n) { return(n.getPathCost()); }