Please use code tags and see
How do I post a question effectively?.
Why do you want recursion? That seems unlikely to provide any benefit and will introduce the risk of overrunning your stack. A depth-first approach would seem to be best if order is not important, given what you've told us.