/// <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));
 }
Пример #3
0
 /// <inheritdoc />
 public bool Equals(SReversedEdge <TVertex, TEdge> other)
 {
     return(EqualityComparer <TEdge> .Default.Equals(OriginalEdge, other.OriginalEdge));
 }