Let's say we have to two people, one from London and one from Istanbul. And both of them do not share any mutual friends. But we know that they are both related with several friends' of friends'. I want to find that connection. (I store the friendships on database). Is there any name for this algorithm?
So the output will be something like: Egbert<->John<->Ivan<->Samuil<->Cengiz