Class TransitiveClosure
- Namespace
- AlgorithmsSW.Digraph
- Assembly
- AlgorithmsSW.dll
Provides an algorithm for finding all vertices reachable from a given vertex or set of vertices in a directed graph.
public class TransitiveClosure
- Inheritance
-
TransitiveClosure
- Inherited Members
- Extension Methods
Constructors
TransitiveClosure(IDigraph)
Initializes a new instance of the TransitiveClosure class.
public TransitiveClosure(IDigraph digraph)
Parameters
digraph
IDigraphThe graph to find the transitive closure of.
Methods
Reachable(int, int)
Returns whether a given vertex is reachable from another given vertex.
public bool Reachable(int vertex1, int vertex2)