Table of Contents

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 IReadOnlyDigraph

The graph to search.

Properties

PostOrder

Gets the vertices in depth-first post-order.

public IEnumerable<int> PostOrder { get; }

Property Value

IEnumerable<int>

PreOrder

Gets the vertices in depth-first pre-order.

public IEnumerable<int> PreOrder { get; }

Property Value

IEnumerable<int>

ReversePostOrder

Gets the vertices in depth-first reverse post-order.

public IEnumerable<int> ReversePostOrder { get; }

Property Value

IEnumerable<int>