Ever wondered how Facebook/LinkedIn learns whether two people may know each other through some common friends? Read on to…