Heap::swap

(Available since version 1.0)

Heap::swapSwap two nodes in the binary tree

Description

protected void Heap::swap ( int $a , int $b )

Swaps around the nodes in the binary tree referred to by the indexes, a and b.

Parameters

a

The first index to be swapped.

b

The second index to be swapped.

Return Values

No value is returned.

To Top