lojix/search/src/main/com/thesett/aima/search/util/informed/GreedyComparator.java
public int compare(SearchNode object1, SearchNode object2)
    {
        float h1 = ((HeuristicSearchNode) object1).getH();
        float h2 = ((HeuristicSearchNode) object2).getH();

        return (h1 > h2) ? 1 : ((h1 < h2) ? -1 : 0);
    }
public int compare(SearchNode object1, SearchNode object2)
    {
        float h1 = ((HeuristicSearchNode) object1).getH();
        float h2 = ((HeuristicSearchNode) object2).getH();

        return (h1 > h2) ? 1 : ((h1 < h2) ? -1 : 0);
    }
public int compare ( SearchNode object1 , SearchNode object2 ) { float h1 = ( ( HeuristicSearchNode ) object1 ) . getH ( ) ; float h2 = ( ( HeuristicSearchNode ) object2 ) . getH ( ) ; return ( h1 > h2 ) ? 1 : ( ( h1 < h2 ) ? - 1 : 0 ) ; }
Compares two heuristic search nodes by their heuristic values.

@param  object1 The first search node to compare.
@param  object2 The second search node to compare.

@return 1 if the first search node has a larger heuristic value than the second, -1 if it has a smaller heuristic
value and 0 if they are the same.
Compares two heuristic search nodes by their heuristic values .