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