DepthFirstPreOrderTraversal<TNode> Class
Definition
Strategy for traversing nodes in a tree depth first, pre-order, i.e. depth first with parent nodes being enumerated before their children.
public sealed class DepthFirstPreOrderTraversal<TNode> : ITraversal<TNode>
where TNode : Node<TNode>
Type Parameters
Name | Description |
---|---|
TNode | The type of nodes in the tree. |
Fields
Name | Description |
---|---|
The singleton DepthFirstPreOrderTraversal<TNode> instance. |
Methods
Name | Description |
---|---|
Last modified: 22 November 2024