Papers
Topics
Authors
Recent
2000 character limit reached

Friends-and-Strangers Graphs

Updated 4 October 2025
  • Friends-and-Strangers graphs are a family of combinatorial objects that encode configuration spaces as permutations over vertices, where adjacent configurations differ by a swap respecting both movement and friendship constraints.
  • They generalize classic puzzles like the 15-puzzle and token swapping models by leveraging structural properties such as k-connectivity, minimum degree thresholds, and deterministic as well as probabilistic criteria.
  • Recent research establishes explicit bounds on connectivity and diameter, providing efficient reconfiguration algorithms in both structured and random graph regimes.

Friends-and-strangers graphs are a family of highly structured combinatorial objects that encode configuration spaces in terms of allowed transpositions governed by two base graphs: a "position" or "movement" graph XX and a "friendship" graph YY. The vertices of FS(X,Y)\mathsf{FS}(X, Y) are all bijections (permutations) between the vertex sets of XX and YY (typically both [n][n]), and two configurations are adjacent if they differ by swapping the images of two adjacent positions (connected in XX) provided that the corresponding "agents" (images in YY) are adjacent (i.e., friends) in YY. This construction generalizes classical puzzles (such as the 15-puzzle), token-swapping models, Cayley graph constructions on symmetric groups, and arises naturally across combinatorics, graph theory, probabilistic, and algebraic applications. Recent research has addressed structural properties including connectivity, kk-connectivity, extremal and random thresholds, and diameter.

1. Formal Definition and Structural Foundations

Let XX and YY be undirected graphs of order nn with V(X)=V(Y)=[n]V(X) = V(Y) = [n]. The friends-and-strangers graph FS(X,Y)\mathsf{FS}(X, Y) is defined as follows:

  • Vertex set: all bijections σ:V(X)V(Y)\sigma : V(X) \to V(Y), i.e., the elements of the symmetric group SnS_n.
  • Edge set: two bijections σ,σ\sigma, \sigma' are adjacent iff there exists (a,b)E(X)(a,b) \in E(X) such that (i)(i) {σ(a),σ(b)}E(Y)\{\sigma(a), \sigma(b)\} \in E(Y), (ii)(ii) σ\sigma' is obtained from σ\sigma by swapping the images of aa and bb, and σ(c)=σ(c)\sigma'(c) = \sigma(c) for all ca,bc \ne a,b.

This move is termed an “‘(X,Y)(X,Y)-friendly swap.’” The model is symmetric in XX and YY (via inverse permutation), and generalizes the Cayley graph of SnS_n generated by transpositions (when YY is complete), token swapping (when XX encodes positions and YY encodes agents), and classical reconfiguration puzzles.

2. Connectivity and kk-Connectivity: Thresholds, Extremal, and Random Models

2.1 Deterministic Sufficient Conditions

The central extremal result for kk-connectivity can be phrased in terms of maximum degree and vertex connectivity. For ss-connectivity,

Δ(X)+κ(Y)n+s1    FS(X,Y) is s-connected\Delta(X) + \kappa(Y) \geq n + s - 1 \implies \mathsf{FS}(X, Y) \text{ is } s\text{-connected}

provided at least one of XX or YY is non-bipartite and YY avoids a short list of exceptional graphs (e.g., CnC_n, certain θ\theta-graphs) (Zhao et al., 1 Apr 2025). That is, the presence of sufficiently "flexible" positions in XX (high degree) and robust global friendship connectivity in YY together guarantee both classical and higher parameters of connectivity.

When both XX and YY are bipartite, there is an unavoidable parity obstruction: FS(X,Y)\mathsf{FS}(X, Y) splits into two components, but the same (Δ(X),κ(Y))(\Delta(X), \kappa(Y)) bound is sufficient to ensure each component is ss-connected.

2.2 Minimum Degree Thresholds

A complementary and more refined extremal criterion is the minimum degree bound for classical ($1$-)connectivity. It is shown that

dn=(3n)/5+O(1)d_n = (3n)/5 + O(1)

is both necessary and sufficient: if both δ(X),δ(Y)dn\delta(X), \delta(Y) \geq d_n then FS(X,Y)\mathsf{FS}(X, Y) is connected (Bangachev, 2021). For bipartite graphs, analogous sharp thresholds are known; e.g., for X,YX, Y edge-subgraphs of Kr,rK_{r,r}, connectivity up to parity occurs if δ(X)+δ(Y)3r/2+1\delta(X) + \delta(Y) \geq \lfloor 3r/2 \rfloor + 1 (Jeong, 2023).

2.3 Probabilistic and Random Graph Regimes

If XG(n,p1)X \sim \mathcal G(n, p_1), YG(n,p2)Y \sim \mathcal G(n, p_2), then the sharp threshold for whp (kk-)connectivity is governed by

p1p2p02=n1+o(1)where    p0=n1/2+o(1)p_1 p_2 \geq p_0^2 = n^{-1 + o(1)} \quad \text{where} \;\; p_0 = n^{-1/2 + o(1)}

i.e., as soon as p1p_1 and p2p_2 are sufficiently large to ensure p1p2n1+o(1)p_1 p_2 \gtrsim n^{-1+o(1)}, FS(X,Y)\mathsf{FS}(X,Y) becomes kk-connected with high probability (Krishnan et al., 27 Oct 2024, 2208.00801). Below this regime, disconnectedness with isolated vertices is typical. These results are asymptotically tight: for all p1p2<n1+o(1)p_1p_2 < n^{-1+o(1)}, FS(X,Y)\mathsf{FS}(X,Y) fails to be connected, and for p1p2n1+o(1)p_1p_2 \gtrsim n^{-1+o(1)}, connectivity (and even kk-connectivity) emerges.

3. Diameter Bounds and Algorithmic Results

Early work provided polynomial diameter bounds in special cases (Jeong, 2022). If XX is a path, every component of FS(X,Y)\mathsf{FS}(X,Y) has O(n2)O(n^2) diameter; for cycles, the bound is O(n4)O(n^4) (improvable to O(n3)O(n^3) if FS\mathsf{FS} is connected).

The most recent expansion (Akella et al., 27 Sep 2025) proves that when XX is a star, the diameter of each component is O(n4)O(n^4), and that for sufficiently high minimum degree in both XX and YY, the diameter is polynomially bounded. Explicit efficient algorithms are provided for transforming any configuration to any other within the same connected component.

For X,YX, Y drawn independently from G(n,p)\mathcal G(n, p), if pqclogn/npq \ge c \log n / n for some constant c>0c > 0, then with high probability all connected components of FS(X,Y)\mathsf{FS}(X,Y) have diameter at most O(n6)O(n^6), thus confirming that in the high-density random regime, polynomial-length reconfiguration sequences suffice with overwhelming probability. Whether the true bound is lower (e.g., O(n2)O(n^2) or O(n4)O(n^4)) is the subject of ongoing research.

4. Structural and Extremal Characterizations

Special families of base graphs yield precise characterizations for connectivity:

  • Lollipop and dandelion graphs: For XX a lollipop or dandelion graph, FS(X,Y)\mathsf{FS}(X, Y) is connected if and only if YY is (nk+1)(n-k+1)-connected, where kk is the size of the complete part (Wang et al., 2022, Zhao et al., 1 Apr 2025).
  • Complete bipartite/multipartite cases: For XX a complete bipartite, Kk,nkK_{k,n-k}, and YY meeting certain connectivity and non-bipartiteness criteria, FS(X,Y)\mathsf{FS}(X,Y) is connected (Wang et al., 2023, Zhu, 2023).
  • Stars and cycles: Wilson’s criterion connects the classical unsolvability of certain puzzles (the 15-puzzle) to disconnectedness in FS(X,Y)\mathsf{FS}(X,Y) when XX is a star (Defant et al., 2020).

These results not only generalize known theorems in permutation and puzzle theory but also provide a precise bridge between combinatorial graph parameters and the global reconfiguration structure.

5. Interplay with Random Structures, Cycle Spaces, and Open Problems

The structure of FS(X,Y)\mathsf{FS}(X, Y) interacts with deep combinatorial and algebraic invariants:

  • The cycle space for FS\mathsf{FS} graphs associated to paths and cycles is spanned by small cycles (4-cycles, 6-cycles) provided sufficient domination or triangle-freeness in YY (Defant et al., 2022).
  • Mixing times for random walks on FS(X,Y)\mathsf{FS}(X, Y) components inherit the diameter bounds; thus, in regimes where diameter is polynomially bounded, mixing times for local random walks are also polynomial.
  • Open questions include tightening the diameter exponent in random models, closing remaining gaps in minimum degree and kk-connectivity thresholds, exploring expanders and cutwidth for FS(X,Y)\mathsf{FS}(X, Y) under various XX, YY, and extending to multiplicity and directed variants (Milojevic, 2022, Dong, 29 Feb 2024).

6. Broader Context and Applications

The paper of friends-and-strangers graphs unifies problems in group theory (Cayley graphs), combinatorial reconfiguration, Markov chain mixing, and even design theory (e.g., regular friendship digraphs correspond to SBIBDs) (Choi et al., 2023). Applied directions include:

  • Sliding puzzles and token swapping: Rigorous polynomial solvability bounds for sliding puzzles with arbitrary underlying movement and friendship graphs.
  • Network design and coding theory: Connectivity and expansion in FS(X,Y)\mathsf{FS}(X,Y) reflect robust resource allocation and communication in network models.
  • Random graph theory and phase transitions: The abrupt emergence of kk-connectivity at explicit probabilistic thresholds is an analogue of classical results for random graphs, but in the much richer configuration space.

7. Summary Table: Connectivity and Diameter Results

Property Deterministic Bound Random Regime Source
Connectivity threshold δ(X),δ(Y)dn\delta(X), \delta(Y) \ge d_n with dn3n/5d_n \sim 3n/5 p1p2n1+o(1)p_1p_2 \gtrsim n^{-1+o(1)} (Bangachev, 2021, Alon et al., 2020)
kk-connectivity Δ(X)+κ(Y)n+k1\Delta(X) + \kappa(Y) \ge n + k - 1 p1p2n1+o(1)p_1p_2 \gtrsim n^{-1+o(1)} (Zhao et al., 1 Apr 2025, Krishnan et al., 27 Oct 2024)
Diameter O(n4)O(n^4) for star, O(n2)O(n^2) for path O(n6)O(n^6) with pqlogn/npq \gtrsim \log n / n (Akella et al., 27 Sep 2025, Jeong, 2022)

References


In conclusion, the theory of friends-and-strangers graphs integrates extremal combinatorics, random graph theory, permutation group actions, and algorithmic reconfiguration, with ongoing advances in higher connectivity, diameter bounds, probabilistic phase transitions, and connections to classic problems such as the 15-puzzle and Cayley graph mixing. Recent advances place tight bounds on thresholds for connectivity and provide explicit polynomial algorithms in both deterministic and high-density random regimes, with open problems remaining for tightening diameter bounds and understanding finer-grained properties of their configuration spaces.

Slide Deck Streamline Icon: https://streamlinehq.com

Whiteboard

Forward Email Streamline Icon: https://streamlinehq.com

Follow Topic

Get notified by email when new papers are published related to Friends-and-Strangers Graphs.