Sign in Join
FPDoc Onlineexperiment

TAVLTreeNode.TreeDepth function

Member of TAVLTreeNodepublicIn unit AVL_Tree

Level of the node in the tree below.

Declaration

pascal
function TreeDepth: Integer

Function result

The depth of the current node.

Description

TreeDepth is the height of the node: this is the largest height of the left or right nodes, plus 1. If no nodes appear below this node ( left and Right are Nil), the depth is 1.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.