Class: Tree

Tree

Datas structure of tree

new Tree (data)

Name Type Description
data Object The data
Properties:
Name Type Description
root Node Node representing the root of the tree

Methods

add (data)Node

Add a new child
Name Type Description
data Object Data of the new child
Returns:
Type Description
Node The new child