org.encog.ml.tree

## Interface TreeNode

- All Known Implementing Classes:
    BasicTreeNode, ProgramNode

      public interface TreeNode

  A node for a tree.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addChildNodes(TreeNode[] args)` Add child nodes.
    `boolean` | `allLeafChildren()`
    `List<TreeNode>` | `getChildNodes()`
    `boolean` | `isLeaf()`
    `int` | `size()`

- - ### Method Detail

    - #### addChildNodes

          void addChildNodes(TreeNode[] args)

      Add child nodes.
      Parameters:
        `args` - The child nodes to add.

    - #### allLeafChildren

          boolean allLeafChildren()

      Returns:
        True, if all children are leaves.

    - #### getChildNodes

          List<TreeNode> getChildNodes()

      Returns:
        The child nodes.

    - #### isLeaf

          boolean isLeaf()

      Returns:
        True, if this is a leaf.

    - #### size

          int size()

      Returns:
        The number of nodes from this point. Do not call on cyclic tree.

Copyright © 2014. All Rights Reserved.