dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]treecc list of nodes in tree format


From: Rhys Weatherley
Subject: Re: [DotGNU]treecc list of nodes in tree format
Date: Fri, 22 Mar 2002 08:58:31 +1000

nymia wrote:

> Quick treecc question, what is the best approach in walking the node tree?

Call "TreeCCNodeVisitAll" with a callback function to
perform whatever it is that you want to do at each node.

It locates the top-most nodes (of which there can be
several), and performs a breadth-first search of the tree.
i.e. it visits a node, then its immediate children, and then
the children of the children.

A new function could be added for depth-first tree
walks, which are probably more suitable for dumping
the structure of the tree.  "TreeCCNodeVisitAllDepth"?

Cheers,

Rhys.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]