(Available since version 1.0)
Heap::swapWithParent — Swap a node with its parent
$child
)
Swaps around the node, child
, and its
parent.
child
The node to be moved.
No value is returned.