path

fun path(descendant: TreeNode<T>): List<TreeNode<T>>

Returns the collection of nodes, which connect the current node with its descendants

Return

collection of nodes, which connect the current node with its descendants

Parameters

descendant

the bottom child node for which the path is calculated

Throws

exception that may be thrown in case if the current node does not have such descendant or if the specified tree node is root