Tree Traversal Example ========================== Function: TreeTraversal Purpose: Example of a Tree In-Order Traversal This is a simple example of an in-order tree traversal. All this does as an example is print an indented tree in the workspace output area as you are traversing the tree. Set up and run the Tree Traversal example: 1. Assuming you have downloaded the traverse.zip file and extracted in the directory containing suneido.db, run the following: suneido -load traverse 2. From libview, under the File menu choose Use Library and enter: traverse 3. Now you can run the example. From a workspace, run: TreeInOrder('stdlib'); This will display all of the items in the tree representation of stdlib. Take a look at the code in the traverse library to see how the traversal is implemented. 4. To start traversing a tree at a specific point, use TreeInOrder2 and specify the name of the folder to start at: TreeInOrder2('stdlib', 'Datadict'); IMPORTANT: IF YOU DOWNLOADED SUNEIDO PRIOR TO APR. 3 2001, YOU WILL NEED TO DOWNLOAD THE LATEST VERSION IN ORDER FOR THIS TO RUN PROPERLY.