the friendship theorem

every pair of people has exactly one common friend → somebody knows everybody

theorem (erdős–rényi–sós, 1966): if in a finite group of people every two people have exactly one common friend, then there is one person who is friends with everyone.

that feels wrong the first time. a party where any two guests share exactly one mutual acquaintance sounds like it could be a nice symmetric web of strangers. it can't. the only graphs with that property are windmills: triangles glued at one shared vertex.

why

the proof runs by contradiction. if no one knows everybody, pick a person a and a non-friend b. the friends of a and the friends of b must pair up one-to-one (each friend of a is the unique common friend of some friend of b), so a and b have the same degree. that makes the graph regular. then counting the common friends of a pair two ways (rows × columns of the adjacency matrix) forces the degree to satisfy k(k−1) = n−1, and a short eigenvalue argument shows that's impossible for any real graph unless the windmill structure appears — which does have a universal vertex.

try it

click two dots to toggle an edge. the checker looks for the property and, if it holds, lights up the politician.

click two dots to draw an edge

the windmill with m blades has 2m+1 vertices: one hub, and m triangles hanging off it. any two blade-vertices from different triangles share exactly the hub; two from the same triangle share their third corner; the hub and any blade-vertex share... the hub is friends with everything, so the theorem's conclusion holds. it's the only shape that does.