Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Vertex1.GetHashCode() * 397) ^ Vertex2.GetHashCode());
     }
 }
Beispiel #2
0
		public override int GetHashCode()
		{
			const int prime = 31;
			int result = 1;
			result = prime * result + (Vertex1 == null ? 0 : Vertex1.GetHashCode());
			result = prime * result + (Vertex2 == null ? 0 : Vertex2.GetHashCode());
			return result;
		}
Beispiel #3
0
        public override int GetHashCode()
        {
            int code = 1;

            unchecked
            {
                code = Vertex1.GetHashCode() + Vertex2.GetHashCode();
            }
            return(code);
        }
Beispiel #4
0
            public override int GetHashCode()
            {
                unchecked
                {
                    var hashCode = Vertex1 != null?Vertex1.GetHashCode() : 0;

                    hashCode = (hashCode * 397) ^ (Vertex2 != null ? Vertex2.GetHashCode() : 0);
                    hashCode = (hashCode * 397) ^ (Vertex3 != null ? Vertex3.GetHashCode() : 0);
                    return(hashCode);
                }
            }
Beispiel #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Normal.GetHashCode();
         hashCode = (hashCode * 397) ^ Vertex1.GetHashCode();
         hashCode = (hashCode * 397) ^ Vertex2.GetHashCode();
         hashCode = (hashCode * 397) ^ Vertex3.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (vertex1_ != null)
            {
                hash ^= Vertex1.GetHashCode();
            }
            if (vertex2_ != null)
            {
                hash ^= Vertex2.GetHashCode();
            }
            if (vertex3_ != null)
            {
                hash ^= Vertex3.GetHashCode();
            }
            return(hash);
        }
Beispiel #7
0
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^ Weight.GetHashCode() ^ Vertex1.GetHashCode() ^ Vertex2.GetHashCode());
 }
Beispiel #8
0
 /// <summary> GetHashCode </summary>
 public override int GetHashCode()
 {
     return(Vertex1.GetHashCode() ^ Vertex2.GetHashCode() ^ Directed.GetHashCode());
 }
 public override int GetHashCode()
 {
     return(Vertex1.GetHashCode());
 }