예제 #1
0
 /// <inheritdoc />
 public virtual bool Equals(EquatableEdge <TVertex> other)
 {
     if (other is null)
     {
         return(false);
     }
     return(Source.Equals(other.Source) && Target.Equals(other.Target));
 }
예제 #2
0
 /// <inheritdoc />
 public virtual bool Equals(EquatableEdge <TVertex> other)
 {
     if (other is null)
     {
         return(false);
     }
     return(EqualityComparer <TVertex> .Default.Equals(Source, other.Source) &&
            EqualityComparer <TVertex> .Default.Equals(Target, other.Target));
 }