ancestors

fun <T, L> Node<T, L>.ancestors(): Sequence<Node<T, L>>

Returns ancestor nodes, starting with this and then following the Node.parent chain.