Skip to content

A2 — Johnson graphs, distance and diameter

Reading: Godsil & Royle, §1.6.

We convert graph theory into set theory. We investigate J(v,k,k−2)J(v,k,k-2) with k≥2k\geq2 and v≥2k+1v\geq2k+1.

Definition

Let Ω={1,2,3,4,5}\Omega=\{1,2,3,4,5\}. A kk-subset contains exactly kk elements. The ten 2-subsets are 12,13,14,15,23,24,25,34,35,4512,13,14,15,23,24,25,34,35,45, where 12 denotes {1,2}\{1,2\}.

Theorem
(vk)=v!k!(v−k)!\boxed{\binom vk=\frac{v!}{k!(v-k)!}}

For A={1,2,3,4}A=\{1,2,3,4\} and B={3,4,5,6}B=\{3,4,5,6\}, their intersection is {3,4}\{3,4\}, while A∖B={1,2}A\setminus B=\{1,2\} and B∖A={5,6}B\setminus A=\{5,6\}.

For two kk-subsets,

Theorem
∣A∖B∣=∣B∖A∣=k−∣A∩B∣.\boxed{|A\setminus B|=|B\setminus A|=k-|A\cap B|.}

This counts how many elements must be replaced to transform one set into another.

Godsil and Royle define the vertices of J(v,k,i)J(v,k,i) as all kk-subsets of a fixed vv-element set. Distinct vertices are adjacent exactly when their intersection has size ii:

V(J)={A⊆Ω:∣A∣=k},A∼B  ⟺  ∣A∩B∣=i.V(J)=\{A\subseteq\Omega:|A|=k\},\qquad A\sim B\iff |A\cap B|=i.

The order is (vk)\binom vk, not vv. In J(4,2,1)J(4,2,1) there are six vertices, twelve edges and valency four. For example 12∼1312\sim13 but 12≁3412\not\sim34.

Johnson adjacency explorer

A∩B={1},∣A∩B∣=1A\cap B=\{1\},\quad |A\cap B|=1Adjacency of selected subsets1213

Adjacent

The conventional Johnson graph J(v,k,k−1)J(v,k,k-1) allows exactly one replacement per edge. For k=4k=4, the sets 12341234 and 12351235 are adjacent because their intersection has size three.

By contrast, J(v,k,k−2)J(v,k,k-2) allows exactly two replacements per edge: 1234∼12561234\sim1256 when k=4k=4. It is not enough that the sets differ in at most two elements; they must differ by exactly two replacements.

The distance dX(u,v)d_X(u,v) is the length of a shortest path between two vertices. The diameter of a connected graph is

Theorem
diam⁡(X)=max⁡u,v∈V(X)dX(u,v).\boxed{\operatorname{diam}(X)=\max_{u,v\in V(X)}d_X(u,v).}

It is the longest shortest path, not the longest path. Examples:

Graph Diameter
KnK_n (n≥2n\geq2) 1
PnP_n n−1n-1
CnC_n ⌊n/2⌋\lfloor n/2\rfloor
K3,3K_{3,3} 2

5. Worked example: ordinary Johnson distance

Section titled “5. Worked example: ordinary Johnson distance”

In J(8,4,3)J(8,4,3), consider disjoint vertices 12341234 and 56785678. Replace one element per step:

1234→2345→3456→4567→5678.1234\to2345\to3456\to4567\to5678.

Ordinary Johnson graph: one replacement per edge

A0={1,2,3,4}A_0=\{1,2,3,4\}

0 of 4 target elements acquired

More generally, let r=k−∣A∩B∣r=k-|A\cap B|. At least rr steps are needed because one edge can introduce at most one required element. Conversely, replacing one unwanted element with one needed element at each step yields a path of length rr. Thus

Theorem
d(A,B)=k−∣A∩B∣in J(v,k,k−1).\boxed{d(A,B)=k-|A\cap B|\quad\text{in }J(v,k,k-1).}

The two arguments are a lower bound and an upper bound. To prove an exact distance, both are needed.

In J(9,4,2)J(9,4,2), disjoint sets 12341234 and 56785678 have a path 1234→3456→56781234\to3456\to5678 of length two. Each edge replaces two elements, so this is shortest.

But 12341234 and 12351235 are not adjacent, despite differing by just one element. Their intersection has size three instead of two. A possible intermediate vertex is 12671267:

1234∼1267∼1235.1234\sim1267\sim1235.

Both intersections along the path have size two. Thus their distance is two, not one.

For an odd number of required replacements, a temporary element may be necessary. Think carefully about the final three replacements, and the special case of a single replacement.

The floor ⌊x⌋\lfloor x\rfloor rounds down to an integer; the ceiling ⌈x⌉\lceil x\rceil rounds up. For example ⌊3.5⌋=3\lfloor3.5\rfloor=3 and ⌈3.5⌉=4\lceil3.5\rceil=4. Seven required replacements, at most two per move, need at least ⌈7/2⌉=4\lceil7/2\rceil=4 moves. This does not itself construct the path.

Take arbitrary vertices A,BA,B of J(v,k,k−2)J(v,k,k-2) and put r=k−∣A∩B∣r=k-|A\cap B|. A path A=A0,A1,…,At=BA=A_0,A_1,\ldots,A_t=B can introduce at most two new elements of BB per step. Thus 2t≥r2t\geq r, so

Theorem
d(A,B)≥⌈k−∣A∩B∣2⌉.\boxed{d(A,B)\geq\left\lceil\frac{k-|A\cap B|}{2}\right\rceil.}

9. Why the underlying set has at least 2k+1 elements

Section titled “9. Why the underlying set has at least 2k+1 elements”

By inclusion–exclusion,

∣A∪B∣=2k−∣A∩B∣,∣Ω∖(A∪B)∣=v−2k+∣A∩B∣≥1+∣A∩B∣.\begin{aligned}|A\cup B|&=2k-|A\cap B|,\\|\Omega\setminus(A\cup B)|&=v-2k+|A\cap B|\\&\geq1+|A\cap B|.\end{aligned}

Even two disjoint kk-subsets leave at least one spare element. When the sets are almost equal, there are even more spare elements. Such elements can be used temporarily to build legal two-replacement paths.

Exact shortest paths by breadth-first search

J(9,4,2),∣V∣=126J(9,4,2),\quad |V|=126d(A,B)=2,diam⁡(X)=2d(A,B)=2,\quad \operatorname{diam}(X)=2
{1,2,3,4}\{1,2,3,4\}{1,2,5,6}\{1,2,5,6\}{5,6,7,8}\{5,6,7,8\}
IntersectionReplacementsDistance
042
132
221
312
400

Finite experiments suggest a conjecture, not a proof. Each consecutive displayed pair is adjacent. Permutations of the underlying set act transitively, so one BFS determines the diameter.

Observe distances for k=2k=2 and for intersection size k−1k-1. Can you conjecture a formula? The breadth-first search verifies finite cases, not all possible values of the parameters.

Find the order of J(7,3,1).(73)=35.\binom73=35.
Are 1234 and 2356 adjacent in J(9,4,2)?

Yes, their intersection is {2,3}\{2,3\}.

Distance between disjoint vertices of J(10,5,4)?

Five, because exactly one element is replaced per edge.

Find a shortest path from 1–6 to 7–12 in J(13,6,4).{1,2,3,4,5,6}→{3,4,5,6,7,8}→{5,6,7,8,9,10}→{7,8,9,10,11,12}.\begin{aligned}\{1,2,3,4,5,6\}&\to\{3,4,5,6,7,8\}\\&\to\{5,6,7,8,9,10\}\\&\to\{7,8,9,10,11,12\}.\end{aligned}

The lower bound is three, so the path is shortest.

In J(7,3,1), find a two-edge path from 123 to 124.

Use {1,5,6}\{1,5,6\} as the intermediate vertex; both adjacent intersections have size one.

If two k-subsets intersect in k−3 elements, what lower bound can you establish?

At least ⌈3/2⌉=2\lceil3/2\rceil=2 steps.

Knowledge check

0/6 answered

1. How many vertices does J(7,3,1)J(7,3,1) have?
2. What does vv represent in J(v,k,i)J(v,k,i)?
3. Are {1,2,3,4}\{1,2,3,4\} and {2,3,5,6}\{2,3,5,6\} adjacent in J(9,4,2)J(9,4,2)?
4. In J(v,4,2)J(v,4,2), are 1234 and 1235 adjacent?
5. Distance between disjoint vertices in J(10,5,4)J(10,5,4)?
6. Seven required replacements give what lower bound for two-replacement moves?

Define rr for arbitrary vertices. Establish the lower bound. Construct paths for even rr, odd r≥3r\geq3, and r=1r=1 separately (also note r=0r=0). Explain why sufficient spare elements exist. Then maximise over all pairs, examining disjoint subsets and exceptional small values of kk. The full general proof is left for you to construct.

Your lesson progress

0/5 available lessons marked complete · 0%