Ejemplo n.º 1
0
 /// <summary>
 /// Determines value equality.
 /// </summary>
 /// <param name="other">The other object to compare against.</param>
 /// <returns>True if the objects are equal.</returns>
 /// TODO: Should this be virtual?
 protected virtual bool IsEqual(AbstractEdge<V> other) => Src.Equals(other.Src) && Dst.Equals(other.Dst);
Ejemplo n.º 2
0
 /// <inheritdoc/>
 public bool Equals(AbstractEdge<V> other)
 {
     if (other is null) return false;
     if (ReferenceEquals(this, other)) return true;
     return IsEqual(other);
 }