TOPICS
Search

Friends-and-Strangers Graph


The friends-and-strangers graph FS(X,Y) of simple graphs X and Y on n vertices is the graph whose vertices are all bijections sigma:V(X)->V(Y). Two such bijections sigma and tau are adjacent when sigma=tau degrees(i,j) for an edge (i,j) of X such that (sigma(i),sigma(j)) is an edge of Y. Thus FS(X,Y) has n! vertices, and its edges represent friendly swaps (Defant and Kravitz 2021).

Equivalently, the vertices of X are positions, the vertices of Y are people, and edges of Y indicate friendship. A move swaps two friends occupying adjacent positions. This interpretation includes sliding puzzles: the 15 puzzle is represented by taking X to be the 4×4 grid graph and Y to be the star graph whose center represents the empty cell. Inversion of bijections gives the graph isomorphism FS(X,Y)=FS(Y,X).

Krishnan and Li (2026) proved that, for connected X and n>=3, the vertex connectivity of FS(X,K_n) equals its minimum vertex degree. They also proved that the vertex connectivity of each connected component of FS(X,Star_n) equals its minimum vertex degree.

For connected X and Y on n vertices, Mawhinney (2026) proved that

 2min{delta(X),delta(Y)}+3max{delta(X),delta(Y)}>=3n

implies that FS(X,Y) is connected, where delta denotes minimum vertex degree. Under the same hypothesis its graph diameter is O(n^2/min{delta(X),delta(Y)}), using big-O notation. The order of this upper bound is sharp in the worst case, not necessarily for every pair X,Y.


See also

15 Puzzle, Bijection, Graph Diameter, Graph Isomorphism, Simple Graph, Star Graph, Vertex Connectivity

Explore with Wolfram|Alpha

References

Defant, C. and Kravitz, N. "Friends and Strangers Walking on Graphs." Combinatorial Theory 1, Paper 6, 1-34, 2021. https://doi.org/10.5070/C61055363.Krishnan, N. and Li, R. "Vertex Connectivity of Friends-and-Strangers Graphs." Elec. J. Combin. 33, P3.41, 2026. https://doi.org/10.37236/15082.Mawhinney, K. "Connectivity and Diameter of Friends and Strangers Graphs Using Minimum Degree." 12 Oct 2026. https://arxiv.org/abs/2610.20648.

Cite this as:

Weisstein, Eric W. "Friends-and-Strangers Graph." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Friends-and-StrangersGraph.html

Subject classifications