Suppose in a social media network:
N is friends with K, P, U, X X is friends with N, A, B and C U is friends with A, B and N A is friends with P, U and