this is one of those issues that I run in to from time to time, and it seems I need to relearn how to solve the problem each time.
It looks like you have an 'adjacent nodes' table - you may wish to use the Hierarchy keyword to expand this in to an expanded nodes table. Here is a document showing some (very) basics. I'd suggest referring to the reference manual for more detail.