/// <inheritdoc /> public bool Equals(SEquatableEdge <TVertex> other) { // ReSharper disable ConstantConditionalAccessQualifier // ReSharper disable ConstantNullCoalescingCondition // Justification: Because of struct default constructor return(Equals(Source, other.Source) && Equals(Target, other.Target)); // ReSharper restore ConstantNullCoalescingCondition // ReSharper restore ConstantConditionalAccessQualifier }
/// <inheritdoc /> public bool TryGetEdge(TVertex source, TVertex target, out SEquatableEdge <TVertex> edge) { if (ContainsEdge(source, target)) { edge = new SEquatableEdge <TVertex>(source, target); return(true); } edge = default(SEquatableEdge <TVertex>); return(false); }
/// <inheritdoc /> public bool ContainsEdge(SEquatableEdge <TVertex> edge) { return(ContainsEdge(edge.Source, edge.Target)); }
/// <inheritdoc /> public bool Equals(SEquatableEdge <TVertex> other) { return(EqualityComparer <TVertex> .Default.Equals(Source, other.Source) && EqualityComparer <TVertex> .Default.Equals(Target, other.Target)); }
/// <inheritdoc /> public bool Equals(SEquatableEdge <TVertex> other) { return(Source.Equals(other.Source) && Target.Equals(other.Target)); }