コード例 #1
0
        public int CompareTo(EdgeIndices other)
        {
            if (ReferenceEquals(this, other))
            {
                return(0);
            }
            if (ReferenceEquals(null, other))
            {
                return(1);
            }
            var i1Comparison = I1.CompareTo(other.I1);

            if (i1Comparison != 0)
            {
                return(i1Comparison);
            }
            return(I2.CompareTo(other.I2));
        }