This program is a beta version (contains some bugs) of an n-ary tree implementation.
To run just open the tree.html file in a browser and execute the available commands.
add [LEAF] [ROOT]
: add node (up to 4 digits).del [LEAF]
: delete node.consulte [LEAF]
: it shows the consulted node in red, its root in blue and its leaves in green. Also shows its level in the tree.root
: shows all branch nodes in red.leaf
: shows all leaf nodes in red.