I need help with a project that I am working on: How do I calculate left and right in a Nested Set Model assuming all inputs come in in no particular order.
4 forms are distributed, each form brings 4 people and each 4 people bring another four people. The network grows downword until 7 generations. How can i find downliners and upliners assuming i decide to pick a node at any level?
     A
|    |   |   |
B    C   D   E 
             |
         ------------
         |   |   |   |
         F   G   H    J
         |
     ----------
     |   |  |  |
     W   X  Y  Z
Explanation:
A brings A B C D
E then brings F G H J
F brings WXYZ
and so on and so forth. At 7th generation we experience an halt. Meanwhile each node begins a lineage downwords.
 
     
    