removeHierarchy

fun <T, L> Node<T?, L>.removeHierarchy(): Sequence<Pair<T, L>>

Returns a breadth-first traversal of nodes, removing those with null data, and pairing the data to the layout.

Especially useful with flatHierarchy after performing a layout, before feeding into selection data.