(Available since version 1.0)
Heap::childOneIndex — Returns the index of the first child
$index
)
Returns the index of the first child of the node referred to
by the index, index
, in the binary
tree.
index
The index to be queried.
The index of the first child or NULL
if none exists.