add

abstract override fun add(element: Element, priority: Priority): LinkedHeapNode<Element, Priority>(source)

Adds the element with corresponding priority to the heap and returns constructed node that corresponds to the element and the priority.