Esempio n. 1
0
        public bool Equals(IChromosome <TVertex, TEdge> other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Genes.SequenceEqual(other.Genes) && EqualityComparer <TEdge> .Default.Equals(Weight, other.Weight));
        }