Esempio n. 1
0
    public int CompareTo(Node other)
    {
        int compare = EstimatedTotalCost.CompareTo(other.EstimatedTotalCost);

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