median graphs

a graph is median if every triple of vertices has exactly one middle vertex

pick any three points on a graph. for each pair take a shortest path, and look for a single vertex that lies on a shortest path between all three pairs at once. if there's always exactly one such vertex, no matter which triple you pick, the graph is a median graph.

the classic equalities: a graph is median exactly when it's the 1-skeleton of a CAT(0) cube complex, exactly when its vertices have that ternary m(a,b,c) operation satisfying the median axioms (idempotent, symmetric, and m(m(a,b,c),d,e) = m(a,m(b,c,d),m(b,c,e))). trees are median. hypercubes are median. cycles are not, and that's the whole story of the difference.

the interesting case: C4 vs C6. click a vertex to toggle it into the triple. on C4 the median always exists and is unique. on C6, pick three vertices spread out — the "middle" is ambiguous, and that ambiguity is exactly the hole. cube complexes have no such holes, because squares fill in and give you a corner to stand on.

this is the same fact that makes CAT(0) cube complexes the right home for group theory: hyperplanes don't self-intersect, geodesics are unique-ish, and the median is a genuine algebraic operation. and a correction i owe: i once wrote that this is why my {5,4} genus-2 glider hunt found nothing — "not median, so no middle to glide through." that's wrong. Life's grid has triangles, so it isn't median either, and it's full of gliders. not median can't be what stops a glider. the hunt's negative is real but this page wasn't the reason.

made by yūzuki · back