The \emph{Sandwich Problem} (SP) for a graph class $\calC$ is the following computational problem. The input is a pair of graphs $(V,E_1)$ and $(V,E_2)$ where $E_1\subseteq E_2$, and the task is to decide whether there is an edge set $E$ where $E_1\subseteq E \subseteq E_2$ such that the graph $(V,E)$ belongs to $\calC$. In this paper we show that many SPs correspond to the constraint satisfaction problem (CSP) of an infinite $2$-edge-coloured graph $H$. We then notice that several known complexity results for SPs also follow from general complexity classifications of infinite-domain CSPs, suggesting a fruitful application of the theory of CSPs to complexity classifications of SPs. We strengthen this evidence by using basic tools from constraint satisfaction theory to propose new complexity results of the SP for several graph classes including line graphs of multigraphs, line graphs of bipartite multigraphs, $K_k$-free perfect graphs, and classes described by forbidding finitely many induced subgraphs, such as $\{I_4,P_4\}$-free graphs, settling an open problem of Alvarado, Dantas, and Rautenbach (2019). We also construct a graph sandwich problem which is in coNP, but neither in P nor coNP-complete (unless P = coNP).
A CSP approach to Graph Sandwich Problems
- Paper ID: 2510.09128
- Title: A CSP approach to Graph Sandwich Problems
- Authors: Manuel Bodirsky, Santiago Guzmán-Pro (TU Dresden)
- Classification: cs.DM (Discrete Mathematics), cs.CC (Computational Complexity), math.CO (Combinatorics)
- Publication Date: October 13, 2025
- Paper Link: https://arxiv.org/abs/2510.09128
Graph Sandwich Problems (SP) represent an important computational problem in graph theory. For a graph class C, its sandwich problem is defined as follows: given two graphs (V,E1) and (V,E2) with E1⊆E2, determine whether there exists an edge set E such that E1⊆E⊆E2 and the graph (V,E) belongs to C. This paper proves that many sandwich problems are equivalent to constraint satisfaction problems (CSP) of infinite 2-edge-colored graphs H, and leverages CSP theory to provide new complexity results for sandwich problems of multiple graph classes, including line graphs of multigraphs, line graphs of bipartite multigraphs, and Kk-free perfect graphs, thereby resolving open problems posed by Alvarado et al. (2019).
- Theoretical Importance: Graph sandwich problems are classical problems in graph theory, introduced by Golumbic et al. in 1995, and represent a natural generalization of graph recognition problems
- Computational Complexity: Sandwich problems are at least as difficult as the corresponding graph recognition problems, and their complexity classification is an important topic in algorithmic graph theory
- Open Problems: The complexity of sandwich problems for perfect graphs remains undetermined and is considered one of the most important open problems in the field
- Lack of Unified Framework: Existing research predominantly employs specialized techniques for specific graph classes, lacking a general analytical method
- Complex Proofs: Traditional hardness proofs typically require intricate reduction constructions
- Limited Theoretical Tools: Systematic theoretical tools for analyzing the complexity of sandwich problems are lacking
This paper aims to establish connections between graph sandwich problems and constraint satisfaction problems, utilizing mature CSP theory tools to provide a unified analytical framework for sandwich problems.
- Theoretical Framework Establishment: Proves that sandwich problems of graph classes satisfying specific conditions are equivalent to CSPs of 2-edge-colored graphs
- New Complexity Results: Provides new complexity classifications for multiple graph classes, including:
- Line graphs of multigraphs and bipartite multigraphs
- Kk-free perfect graphs
- {I4,P4}-free graphs, etc.
- Resolution of Open Problems: Resolves the open problem posed by Alvarado et al. (2019) regarding sandwich problems of {I4,P4}-free graphs
- Non-Dichotomy Results: Constructs graph sandwich problems that are coNP-intermediate, proving the non-triviality of complexity classification
Graph Sandwich Problem (SP): Given a graph class C and input (V,E1,E2) where E1⊆E2, determine whether there exists E such that E1⊆E⊆E2 and (V,E)∈C.
Equivalent Formulation: Input is a triple (V,E,N), where E is the set of required edges and N is the set of forbidden edges. Determine whether there exists a graph (V,E′)∈C such that E⊆E′ and E′∩N=∅.
- 2-Edge-Colored Graph: A triple (V,B,R), where B is the set of blue edges and R is the set of red edges, with B∩R=∅
- Homomorphism: A vertex mapping that preserves adjacency relationships and colors
- CSP(H): The class of all finite 2-edge-colored graphs that can be homomorphically mapped to H
Proposition 3: For a graph class C, the following are equivalent:
- C is hereditary, possesses the joint embedding property, and is closed under split-extension
- There exists a 2-edge-colored graph (V,R,B) such that CSP(V,R,B)=SP(C)
- There exists a graph H such that SP(C)=CSP(H∗)=injCSP(H∗)
where H∗ denotes the complete 2-edge-colored graph with blue edges E(H) and red edges N(H).
Utilizes pp-constructions to establish reduction relationships between CSPs, which correspond to gadget reductions in graph theory.
For a hereditary graph class C, if there exists a universal graph H (i.e., Age(H)=C), then SP(C)=CSP(H∗).
- Extension: Adding twins (vertices with identical neighborhoods)
- Co-extension: Adding co-twins (vertices with identical neighborhoods except each other)
- Split-Extension: Performing extension or co-extension according to vertex partition (I,C)
This paper is primarily theoretical work, with validity verified through:
- Reproduction of Known Results: Re-proving known complexity results for sandwich problems using the CSP method
- Derivation of New Results: Obtaining new complexity classifications using CSP theory tools
- Computational Verification: Polymorphisms of certain finite structures verified through computer programs
- Datalog Programs: Solving certain polynomial-time solvable CSPs
- MMSNP Reductions: Reducing infinite-domain CSPs to finite-domain ones
- Algebraic Methods: Analyzing CSP complexity using polymorphisms
- Theorem: The sandwich problem for line graphs of multigraphs is NP-complete
- Theorem: The sandwich problem for line graphs of bipartite multigraphs is NP-complete
- Corollary 18: For k≥4, the sandwich problems for {P4,Kk}-free graphs, {P4,Ik}-free graphs, and Kk-free perfect graphs are all NP-complete
- Theorem 17: Let F be a set of non-complete vertex-determining graphs such that F-free graphs are perfect. Then for k≥4, the sandwich problem for (F∪{Kk})-free graphs is NP-hard
- Theorem 20: For n,k≥4, the sandwich problem for {Pn,Kk}-free graphs is NP-complete
- Split graphs: Via 2-SAT reduction
- Threshold graphs: Utilizing complete symmetric polymorphisms
- Complete multipartite graphs: Solved via Datalog programs
- Comparability graphs: Via CSP reduction of random partial orders
- Permutation graphs: Via betweenness problem reduction
- Generalized split graphs: (p,q)-split graphs when p+q>2
Theorem 21: If P = coNP, then there exists a graph class C such that SP(C) is coNP-intermediate.
The construction is based on an adaptation of Ladner's theorem, proving that the complexity of graph sandwich problems transcends the P vs NP dichotomy.
- Golumbic et al. (1995): First systematic study of graph sandwich problems
- Subsequent Work: Complexity classification for specific graph classes
- Open Problems: Complexity of sandwich problems for perfect graphs remains undetermined
- Schaefer's Theorem: Dichotomy for Boolean domain CSPs
- Hell-Nešetřil Theorem: Classification of graph homomorphism problems
- Finite Domain Dichotomy: Breakthrough results by Bulatov and Zhuk
- Infinite Domain CSP: Classification of special cases such as temporal CSPs
This paper establishes for the first time a systematic connection between graph sandwich problems and infinite-domain CSPs, providing a new perspective for cross-disciplinary research.
- Theoretical Unification: Graph sandwich problems can be systematically analyzed using CSP theory
- Method Effectiveness: CSP tools simplify complexity proofs and enable discovery of new results
- Complexity Richness: Sandwich problems exhibit a complete complexity spectrum ranging from P to coNP-intermediate
- Scope of Applicability: Only applicable to graph classes satisfying specific conditions (hereditary, JEP, split-extension closed)
- Perfect Graph Problem: The most important open problem (perfect graph sandwich problem) remains unsolved
- Constructiveness: Some existence results lack effective constructive algorithms
- ω-Categorical Structures: Study sandwich problems for ω-categorical graph classes
- Perfect Graph Problem: Seek solutions to the perfect graph sandwich problem
- Decidability: Investigate decidability of complexity when given forbidden subgraph sets
- NP-Intermediate: Search for NP-intermediate graph sandwich problems
- Theoretical Innovation: First systematic connection between graph sandwich problems and CSP theory, providing a unified analytical framework
- Elegant Methodology: Significantly simplifies complexity proofs through pp-constructions and other CSP tools
- Rich Results: Resolves multiple open problems and provides numerous new complexity results
- Technical Depth: Combines profound theories from graph theory, model theory, and computational complexity
- Application Restrictions: Framework only applies to specific types of graph classes, not completely universal
- Practical Utility: Primarily theoretical contributions with limited improvements to practical algorithms
- Perfect Graphs: Core open problem remains unsolved
- Academic Value: Provides new theoretical tools and perspectives for graph sandwich problem research
- Interdisciplinary Significance: Promotes cross-disciplinary integration of graph theory and CSP theory
- Methodological Contribution: Demonstrates exemplary application of pp-constructions in graph-theoretic complexity analysis
This method is particularly suitable for:
- Hereditary graph classes with good structural properties
- Graph classes with universal graphs
- Graph-theoretic problems requiring systematic complexity analysis
The paper cites 61 related references, primarily including:
- Foundational work on graph sandwich problems 38
- Core CSP theory results 20,59,60
- Classification results for infinite-domain CSPs 10,11,46
- Structural results in graph theory 22,23,37,47
Summary: By establishing profound connections between graph sandwich problems and constraint satisfaction problems, this paper provides a novel theoretical analytical framework for this classical graph-theoretic problem. While limitations remain in completely resolving all sandwich problems, its theoretical contributions and methodological innovations open new avenues for related research.