updateTop

abstract fun updateTop(): DisiWrapper

Rebalance this heap and return the top entry.


abstract fun updateTop(topReplacement: DisiWrapper): DisiWrapper

Replace the top entry with the given entry, rebalance the heap, and return the new top entry.