I have a partner1 <-> partner2 relationship where I have something like this:
(partner1, partner2)
(1, 2)
(3, 2)
(3, 5)
(4, 5)
(4, 8)
(33, 45)
What I have is one of the partner1 value, and I need to see all the partner1 values in this chain. So, in the above example, I would have partner1=3, and I would like to see the list:
1
3
4
The chain is unlikely to have more than 10 links.