Home > WaCoLab > package > @tree > depth.m

depth

PURPOSE ^

depth -- Function to know the depth of a tree

SYNOPSIS ^

function d = depth(root)

DESCRIPTION ^

depth -- Function to know the depth of a tree

 input:
   root: the root of the tree to measure to depth
 output:
   d: the depth of the tree beginning a the root
 
 example: this tree has a depth of 3
       r
       |_c1
       |_c2
          |_c3

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 12-Oct-2007 20:23:47 by m2html © 2003