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