/// <summary> /// /// </summary> /// <returns></returns> public override int GetHashCode() { if (TargetNode != null) { return(TargetNode.GetHashCode() + (int)Cost); } else { return((int)Cost); } }
public override int GetHashCode() => (SourceNode.GetHashCode() * 17 + TargetNode.GetHashCode()) * 17 + Weight.GetHashCode();