/// <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);
/// <inheritdoc/> public bool Equals(AbstractEdge<V> other) { if (other is null) return false; if (ReferenceEquals(this, other)) return true; return IsEqual(other); }