This may not answer your question.
Once you get a tree there is a level of complexity. This might help.