/// <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);
        }
Exemple #2
0
 /// <inheritdoc />
 public bool Equals(SReversedEdge <TVertex, TEdge> other)
 {
     return(EqualityComparer <TEdge> .Default.Equals(OriginalEdge, other.OriginalEdge));
 }
 /// <inheritdoc />
 public bool ContainsEdge(SReversedEdge <TVertex, TEdge> edge)
 {
     return(OriginalGraph.ContainsEdge(edge.OriginalEdge));
 }
Exemple #4
0
 /// <inheritdoc />
 public bool Equals(SReversedEdge <TVertex, TEdge> other)
 {
     return(OriginalEdge.Equals(other.OriginalEdge));
 }