Method to add new node to tree (mutable operation!)
tree structure for node adding
identifier of parent node, null if new node should be on root level
data of new node
Rest
...anotherChildData: any[]data of new additional nodes
Method to get nodes that are part of path from root Alias for getAncestors method
tree structure to search in
identifier of node
all nodes that are part of path (ordered from root)
Method to get subtree from given node (children of node) Alias for getChildren method
tree structure to search in
identifier of node
subtree
Convert list to tree like structure
list of objects, objects need to have id (as you configured, or 'id' by default) and parentId property (as you configured, or 'parentId' by default)
id of root parent nodes (if not specified, root nodes are nodes with parentId of null)
tree structure
Class to transform and manipulate tree like structures