Esempio n. 1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     return(HashCodeHelpers.Combine(
                Source.GetHashCode(),
                Target.GetHashCode(),
                SourceTerminal.GetHashCode(),
                TargetTerminal.GetHashCode()));
 }
Esempio n. 2
0
 /// <inheritdoc />
 public virtual bool Equals(EquatableTermEdge <TVertex> other)
 {
     if (other is null)
     {
         return(false);
     }
     return(EqualityComparer <TVertex> .Default.Equals(Source, other.Source) &&
            EqualityComparer <TVertex> .Default.Equals(Target, other.Target) &&
            SourceTerminal.Equals(other.SourceTerminal) &&
            TargetTerminal.Equals(other.TargetTerminal));
 }
Esempio n. 3
0
 /// <inheritdoc />
 public virtual bool Equals(EquatableTermEdge <TVertex> other)
 {
     if (other is null)
     {
         return(false);
     }
     return(Source.Equals(other.Source) &&
            Target.Equals(other.Target) &&
            SourceTerminal.Equals(other.SourceTerminal) &&
            TargetTerminal.Equals(other.TargetTerminal));
 }