public int CompareTo(Node other)
    {
        int compare = EstimatedTotalCost.CompareTo(other.EstimatedTotalCost);

        if (compare == 0)
        {
            compare = HeuristicCost.CompareTo(other.HeuristicCost);
        }
        return(-compare);
    }
Beispiel #2
0
 public int CompareTo(PartialPath other)
 {
     return(EstimatedTotalCost.CompareTo(other.EstimatedTotalCost));
 }