child_position


Description:

public int child_position (Node<G> child)

Gets the position of a Node with respect to its siblings.

child must be a child of this. The first child is numbered 0, the second 1, and so on.

Parameters:

this

a Node

child

a child of this

Returns:

the position of child with respect to its siblings