TreeDraw
Interface Tree

All Known Subinterfaces:
LabelledTree
All Known Implementing Classes:
ArbolCYK, LabelledTreeImpl, TreeDrawingInstructions

public interface Tree

Simple interface representing a non-empty tree.


Method Summary
 Tree getChild(int i)
          Returns the i'th subtree of the tree's root.
 int numChildren()
          Returns the number of subtrees of the tree's root.
 

Method Detail

numChildren

int numChildren()
Returns the number of subtrees of the tree's root.


getChild

Tree getChild(int i)
Returns the i'th subtree of the tree's root.