public int CompareTo(object other) { SeekerData seeker = other as SeekerData; if (seeker == null) { throw new System.ApplicationException("Invalid SeekerData provided for comparison"); } return(FScore.CompareTo(seeker.FScore)); }
public int CompareTo(object obj) { PathData other; other = obj as PathData; if (other != null) { return(FScore.CompareTo(other.FScore)); } else { throw new System.ArgumentException("Invalid PathData given"); } }
public int CompareTo(Vertex other) => FScore.CompareTo(other.FScore);