addChild

fun addChild(child: TreeNode<T>)

Add new child to current node or root.

Parameters

child

A node which will be directly connected to current node.