Hi,
The table consists of pairs of users which are connected together. The following is a hypothetical example:
user1, user2
a, b
a, c
c, a
c, d
d, e
a, e
j, n
g, n
f, n
By randomly picking up a user from the table (user1 or user2) I would like to retrieve the whole cluster of connections to which the selected user belongs. For example if the user d is selected the query (or an algorithm) should return connections
a, b
a, c
c, a
c, d
d, e
a, e
Does anyone know how to form a query statement or create an algorithm to retrieve the connections cluster?
Thank you!