TOPICS
Search

Friends-and-Strangers Graph


Let X and Y be simple graphs on n vertices. The friends-and-strangers graph FS(X,Y) has as its vertices 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.


See also

15 Puzzle, Bijection, 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, No. 3, P3.41, 1-34, 2026. https://doi.org/10.37236/15082.

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