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

addChildren

PURPOSE ^

addChildren -- Adds children to given parent node

SYNOPSIS ^

function result = addChildren(parent,children)

DESCRIPTION ^

addChildren -- Adds children to given parent node
 
 input:
   parent: The tree to add the children to
   children: {child1 child2 ... childn}
 output:
   A new tree is returned with the children added to the specified node
   NOTE: Due to pass by value semantics it is not possible to add children
   to a node that has a parent without losing the link with that parent.
   So if you want to build a tree by using the addChildren method it is best
   done via a bottom-up approach or via the addChildrenToLabel method.

CROSS-REFERENCE INFORMATION ^

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