I am trying to code for a tree with arbitrary branching factors and node levels indexes and values.
What could some good code be?
I have tried looking at what is available in PHP but wanted to code my own stuff.
Any ideas?
I want the iterator to do both depth and breath.
Thanks.
The following code I created does a good job.
I hope others can use it and find it useful.