Tree Data Structure
Toggle table of contents
4.2.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Tree Data Structure
Tree Data Structure
/
com.github.adriankuta.datastructure.tree
/
root
root
fun
<
T
>
TreeNode
<
T
>
.
root
(
)
:
TreeNode
<
T
>
(
source
)
Walks up the parent chain and returns the topmost ancestor (the tree root).