plugin/huzplugin.js
// Make graph function, returns false if the problem is not a legal version for the heuristic
Make graph function, returns false if the problem is not a legal version for the heuristic
Make graph function returns false if the problem is not a legal version for the heuristic
function makeGraph(state){
    var graph = new Map();
    let index = 1;
    fluents = getGroundedFluents();
    actions = getGroundedActions();
    if(actions == false) {
        return false;
    }
    generateFluentNodes(state, graph, index);
    generateActionNodes(graph, index);
    generateGoalNode(graph, index);
    return graph;
}
function makeGraph ( state ) { var graph = new Map ( ) ; let index = 1 ; fluents = getGroundedFluents ( ) ; actions = getGroundedActions ( ) ; if ( actions == false ) { return false ; } generateFluentNodes ( state , graph , index ) ; generateActionNodes ( graph , index ) ; generateGoalNode ( graph , index ) ; return graph ; }
Make graph function, returns false if the problem is not a legal version for the heuristic
Make graph function returns false if the problem is not a legal version for the heuristic
// Precondition has a negative, cannot compute heuristic, return