/// <inheritdoc /> public bool TryGetEdge(TVertex source, TVertex target, out SReversedEdge <TVertex, TEdge> edge) { if (OriginalGraph.TryGetEdge(target, source, out TEdge originalEdge)) { edge = new SReversedEdge <TVertex, TEdge>(originalEdge); return(true); } edge = default(SReversedEdge <TVertex, TEdge>); return(false); }
/// <inheritdoc /> public bool ContainsEdge(SReversedEdge <TVertex, TEdge> edge) { return(OriginalGraph.ContainsEdge(edge.OriginalEdge)); }
/// <inheritdoc /> public bool Equals(SReversedEdge <TVertex, TEdge> other) { return(EqualityComparer <TEdge> .Default.Equals(OriginalEdge, other.OriginalEdge)); }