Heap::childTwoIndex

(Available since version 1.0)

Heap::childTwoIndexReturns the index of the second child

Description

protected int Heap::childTwoIndex ( int $index )

Returns the index of the second child of the node referred to by the index, index, in the binary tree.

Parameters

index

The index to be queried.

Return Values

The index of the second child or NULL if none exists.

To Top