org.encog.ml.tree.traverse

## Class DepthFirstTraversal

- java.lang.Object
- - org.encog.ml.tree.traverse.DepthFirstTraversal

- All Implemented Interfaces:
    TreeTraversal

      public class DepthFirstTraversal
      extends Object
      implements TreeTraversal

  Performs a depth-first traversal.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DepthFirstTraversal()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `traverse(TreeNode treeNode, TreeTraversalTask task)` Traverse the tree.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DepthFirstTraversal

          public DepthFirstTraversal()

  - ### Method Detail

    - #### traverse

          public void traverse(TreeNode treeNode,
                      TreeTraversalTask task)

      Traverse the tree.
      Specified by:
        `traverse` in interface `TreeTraversal`
      Parameters:
        `treeNode` - The tree to traverse.
        `task` - The task to execute on each tree node.

Copyright © 2014. All Rights Reserved.