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

nodesAtLevel

PURPOSE ^

nodesAtLevel -- Counts the number of nodes at a certain level

SYNOPSIS ^

function nbChildren = nodesAtLevel(root,level)

DESCRIPTION ^

nodesAtLevel -- Counts the number of nodes at a certain level

 input:
   root: The tree to add the children to
   level: The level to count the nodes on (root is level 1)
 output:
   nbChildren: The number of children on the given level

CROSS-REFERENCE INFORMATION ^

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