public override int GetHashCode() { unchecked { return (Vertex1.GetHashCode()*397) ^ Vertex2.GetHashCode(); } }