Class DepthFirstOrder
- Namespace
- AlgorithmsSW.Digraph
- Assembly
- AlgorithmsSW.dll
Provides an algorithm for finding the vertices in a directed graph in depth-first pre-order, post-order, and reverse post-order.
public class DepthFirstOrder
- Inheritance
-
DepthFirstOrder
- Inherited Members
- Extension Methods
Constructors
DepthFirstOrder(IReadOnlyDigraph)
Initializes a new instance of the DepthFirstOrder class.
public DepthFirstOrder(IReadOnlyDigraph digraph)
Parameters
digraph
IReadOnlyDigraphThe graph to search.
Properties
PostOrder
Gets the vertices in depth-first post-order.
public IEnumerable<int> PostOrder { get; }
Property Value
PreOrder
Gets the vertices in depth-first pre-order.
public IEnumerable<int> PreOrder { get; }
Property Value
ReversePostOrder
Gets the vertices in depth-first reverse post-order.
public IEnumerable<int> ReversePostOrder { get; }