Node
Creates a new node with its associated text and an optional parent.
Parameters
text
The text to associate with the node
parent
The optional parent of the node. Passing any non-null value will add the created node to the parent's children
Creates a new node with its associated text without a parent.
Parameters
text
The text to associate with the node