Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Tree traversal => nested array
06-01-2007, 04:38 PM #1
- Join Date
- Jul 2002
- The Netherlands
- Thanked 0 Times in 0 Posts
Tree traversal => nested array
I'm exploring what DB-model for storing hierarchical data will suit my application best. As far as I can see there are two options: the adjency list model and the tree traversal model.
The first one is pretty clear to me, and with it I'm able to get the entire tree or a portion of it into a nested array for further processing.
However, somehow the tree traversal method intrigues me and I want to see if it will fit my needs. So far my first major obstacle is to extract the data from the DB as a nested array, which I can pass on to my gui-class.
My testing db looks like this now:
Can anyone give me some pointers on how to process this?
Thanx in advance!