NJ does not control routing. It controls who is the parent of a device only. For end device communications, All data must flow between the parent and the end device. Then get routed to the destination with the least amount of hops possible. So if you have C1, R1, R2 and E1, if E1 is connected to R2, and if R2 and R1 are both in range of the Coordinator (C1), R2 will as a parent of E1 will send the data directly to the Coordinator. Now if R2 is out of range of the Coordinator but in range of R1 and R1 is in range of the Coordinator, then the data will flow through R1.