WorksMathematics
Finding non-bisimplicial and triad-free minimal separators
Abstract
A separator in is a set such that there is no path in . A minimal separator in is a set such that for some , is a separator in but no proper subset of is. A set is bisimplicial if it is the union of at most two cliques. Recognizing graphs in which every minimal separator is the union of at most cliques is polynomial-time solvable for and NP-hard for every fixed . We settle the remaining case by giving a polynomial-time algorithm to decide whether every minimal separator in a graph is bisimplicial. A set is triad-free if its independence number is at most two. Given a graph and two vertices , the problem of finding a separator with had the same complexity gap: it was known to be polynomial-time solvable for and NP-hard for every fixed . We resolve the remaining case by giving a polynomial-time algorithm that finds a triad-free separator or determines that none exists.
Introduction
The set of all positive integers is denoted by . Graphs in this paper have finite vertex sets, no loops, and no parallel edges. Let and be two graphs. is said to contain if contains an induced subgraph isomorphic to . is -free if does not contain . For , we denote by the subgraph of induced by , and we refer to and interchangeably. By , we denote the size of the largest stable set in . For disjoint subsets , we say that and are anticomplete (or that is anticomplete to ) if there is no edge in with an end in and an end in . Similarly, we say that and are complete (or that is complete to ) if for every pair .
An induced minor of is a graph obtained from an induced subgraph of by repeatedly contracting edges and deleting all arising loops and parallel edges. For a graph , we say that contains as an induced minor if there is an induced minor of isomorphic to . We say that is -induced-minor-free if does not contain as an induced minor. For standard graph-theoretic terminology, the reader is referred to [7].
Let be a graph. We use to denote the complement of . A path in is a set of vertices such that is a path. An antipath in is a set of vertices such that is a path. An antihole in is a set of vertices such that is a cycle of length at least 4. We say that an antipath or an antihole is odd if is odd. Analogously, an antipath or an antihole is even if is even.
A - separator in is a set such that there is no - path in . A minimal separator in is a set such that for some , is a - separator in but no proper subset of is. We say that a separator is odd if it contains an odd antihole. A shortest odd minimal separator is an odd minimal separator that contains an odd antihole such that no other odd minimal separator contains an odd antihole of length less than . A set is bisimplicial if is the union of at most two cliques. Finally, a set is triad-free if its independence number is at most two.
Let denote the class of all graphs in which every minimal separator is the union of at most cliques. The class corresponds to the class of all chordal graphs and can be recognized in polynomial time [8, 11]. It is known that the problem of recognizing graphs in is NP-hard for [10]. The problem of recognizing graphs in was posed as an open problem in [10]. We show that it can be solved in polynomial time:
Theorem 1.1. There exists a polynomial-time algorithm to decide if a graph is in .
The proof outline of Theorem 1.1 is as follows. As a first step, we test whether every minimal separator in is triad-free. Using the following lemma, this is equivalent to testing whether is -induced-minor-free.
Lemma 1.2 (Dallard, Milanič, Štorgel [6]). Let be a graph. Then, every minimal separator in is triad-free if and only if is -induced-minor-free.
The following theorem shows that this test can indeed be done in polynomial time.
Theorem 1.3 (Dallard, Dumas, Hilaire, Milanič, Perez, Trotignon [4]). There exists a polynomial-time algorithm that decides if contains as an induced minor.
Let be the class of all graphs in which every minimal separator is triad-free but such that . Note that this means that every graph has an odd minimal separator. Given a -induced-minor-free graph , we show how to find a shortest odd minimal separator in polynomial time, if one exists, which then implies Theorem 1.1.
To do so, we find connected sets on opposite sides of a minimal separator whose neighborhoods contain a common odd antihole. The structural lemmas allow us to find such sets by guessing a bounded number of vertices, even though the separator and the antihole may be large.
Our second result concerns the existence of separators between two prescribed vertices with bounded independence number. For a fixed positive integer , consider the problem of deciding whether a graph has a - separator with . This problem is polynomial-time solvable for , while Dallard, Fomin, Golovach, Korhonen, and Milanič [5] proved that it is NP-complete for every fixed and left the case open. We settle this remaining case by giving a polynomial-time algorithm that finds a triad-free - separator or determines that none exists.
Theorem 1.4. Let be two vertices in a graph . There exists a polynomial-time algorithm that either finds a triad-free - separator in or determines that none exists.
Note that if a triad-free - separator exists, then there also exists a minimal triad-free - separator. Given a triad-free - separator , we can make it minimal by repeatedly removing a vertex of and testing if the remaining set is still a - separator.
The proof proceeds as follows. The main structural step behind our algorithm identifies, among polynomially many candidates, a subset of the desired separator whose removal forces the remainder of to be bisimplicial. We then reduce the remaining task to the list 2-clique cutset problem. An instance of the list 2-clique cutset problem is a list of subsets of and a solution to is a partition of such that
, , , ,
is anticomplete to , and
and are both (possibly empty) cliques.
It is known that the list 2-clique cutset problem can be solved in polynomial time [1].
Theorem 1.5 (Cameron, Eschen, Hoàng and Sritharan [1]). The list 2-clique cutset problem admits a polynomial-time algorithm.
As a corollary of Theorem 1.4, we obtain a polynomial-time algorithm for the list triad-free cutset problem. An instance of the list triad-free cutset problem is a list of subsets of and a solution to is a partition of such that
, , ,
is anticomplete to , and
is triad-free.
We think of and as the two sides of the separation and we think of the list as the list of allowed vertices in each corresponding set. Thus, we may prescribe vertices on either side of the separation, as well as vertices that must belong to, or must be excluded from, the cutset. The goal is to either find such a partition or to determine that none exists.
Corollary 1.6. The list triad-free cutset problem admits a polynomial-time algorithm.
We will explain how to derive Corollary 1.6 in § 5.
Additionally, we define two extensions of the list triad-free cutset problem. The connected list triad-free cutset problem is defined the same way as the list triad-free cutset problem, except that for a solution , the set is additionally required to be either connected or empty. The minimal list triad-free cutset problem is defined the same way as the list triad-free cutset problem, except that for a solution , each vertex is additionally required to have a neighbor both in and . We show a sharp boundary in the hardness of these extensions: While the connected version of the problem is still polynomial-time solvable, the minimal version is NP-hard.
Corollary 1.7. The connected list triad-free cutset problem admits a polynomial-time algorithm.
Proposition 1.8. The minimal list triad-free cutset problem is NP-hard, even when the input graph is the complement of a bipartite graph.
Outline of the paper
In Section § 2, we introduce some definitions. Then, in Section 3, we show several structural properties of shortest odd minimal separators. In § 3.1, we use the structural properties to devise the algorithm from Theorem 1.1. In § 4, we prove Theorem 1.4. Finally, in § 5, we derive Corollaries 1.6 and 1.7, and Proposition 1.8.
Definitions
Let be a graph. For , we define the neighborhood of , denoted , to be the set of all vertices in with at least one neighbor in . By the closed neighborhood of , denoted , we mean the set . We say that a set is -full or full to if . Note that if is a minimal separator in , then has at least two -full components [9]. We define the non-neighborhood of , denoted , to be the set . Note that a vertex is not its own non-neighbor. For a set , we define to be the set . Similarly, . For convenience, we will treat a vertex and the set interchangeably. Analogously, we will treat a pair and the set interchangeably.
Let be an antihole in . We write to mean that each consecutive pair of vertices is non-adjacent. For convenience, we identify with and for every . Let be a path or an antipath in . We call the vertices and the ends of and refer to as the interior of , denoted .
Let be a set of vertices and . We say that a vertex is small for if has at most 2 non-neighbors in . Similarly, is big for if has at least 3 non-neighbors in . The set of vertices of that are big for is denoted by . When the set is clear, we just say that is small or big. For an antihole , we define a stretch of to be an antipath with such that is not adjacent to the ends of and is complete to . We say that a stretch is even if is even, and analogously a stretch is odd if is odd. A stretch is long if .
The structure of
Throughout this section, let be a graph, let be a shortest odd minimal separator in , and let be a shortest odd antihole in .
Lemma 3.1. Every has an even stretch in $A.
Proof. Let where and note that . For , let and let . Note that each is a stretch of . Observe that and that because every vertex in is counted twice. Since is odd, it follows that one of the stretches is even. This completes the proof.
Lemma 3.2. Every vertex is small for .
Proof. Suppose that is big. Then, by Lemma 3.1, has an even stretch in . Since , does not have two consecutive non-neighbors in . Together with the fact that
is big, it follows that . Let . Then, is an odd antihole in shorter than , which is a contradiction. This completes the proof.
Lemma 3.3. Let be an -full component of . Then, there exists a subset such that is connected, is full to , and such that contains at most 6 small vertices.
Proof. Let be connected and full to , such that is as small as possible. Suppose first that is a path. Let be the ends of . By the minimality of , for there exists such that is the unique neighbor of in . It follows that for every vertex in that is small for , . Since is odd, there exist two consecutive vertices that are complete to all the small vertices in . Suppose that contains at least 5 small vertices. Then, 3 of them form a stable set which together with forms a in , contrary to the fact that . Thus, contains at most 6 small vertices as required.
Now, we may assume that is not a path, and so there exist three distinct vertices such that for each , is connected. By the minimality of , for each , there is such that is the unique neighbor of in . It follows that the vertices , and are all distinct and every vertex of is anticomplete to . Consequently, no vertex of is small, and the assertion of the lemma holds.
If were known, we could enumerate sets of at most six small vertices and take components of the graph induced by each such set together with . By Lemmas 3.2 and 3.3, one of these guesses yields a component that is full to and lies entirely in an -full component of . The next two lemmas allow us to search through polynomially many candidates for either a shortest odd antihole of or a subset of of size at most 22 that preserves all big vertices in an -full component.
Lemma 3.4. Suppose that has a long stretch in where . Then, every other stretch of has exactly 3 vertices.
Proof. First, suppose that is anticomplete to two consecutive vertices . Note that in that case is a stable set of size 3. Since is big, . Hence, there exist that are complete to . This contradicts being -free.
Thus, is adjacent to at least one of for every . By Lemma 3.1, has an even stretch in . Let be a shortest even stretch of in and let . Suppose that has a long stretch in . Since is big for , is shorter than and . Hence, there exist that are complete to . Then, there exists a minimal --separator in that contains , contrary to being a shortest odd minimal separator in . It follows that and by minimality of every stretch of in has size at most 3. Since has no two consecutive non-neighbors in , every other stretch has size exactly three. This completes the proof.
Lemma 3.5. Let . Then, one of the following holds:
There exist two vertices such that .
There exists a set of size at most 22 such that .
Proof. We may assume is non-empty. Let be a vertex with the longest stretch in , say where . Suppose that some vertex is complete to . By Lemma 3.4, it follows that either has a longer stretch than , which is a contradiction, or outcome (1) holds.
Therefore, we may assume that every vertex is non-adjacent to one of . Let . We show that every is big for . If has a long stretch, then this follows from Lemma 3.4. Otherwise, every stretch of is of size at most 4, and hence is also big for . Thus, outcome (2) holds. This completes the proof.
Finding a non-bisimplicial minimal separator
We will use the following two results from [3] and [6]:
Theorem 4.1 (Chudnovsky, Scott, Seymour [3]). There exists a polynomial-time algorithm that finds a shortest odd hole in a graph or determines that none exists.
Lemma 4.2 (Dallard, Milanič, Štorgel [6]). Let be a graph, let be an induced subgraph of , and let be a minimal separator in . Then there exists a minimal separator in such that .
We can now prove Theorem 1.1.
Theorem 1.1. There exists a polynomial-time algorithm to decide if a graph is in .
Proof. First, we describe the algorithm.
Applying the algorithm from Theorem 1.3, we decide if is -induced-minor-free. If not, we output “”. Next, let be the set of subsets of of size at most 22. For each 4-tuple of vertices of , add a shortest odd antihole of , if one exists, to . This is possible by Theorem 4.1. For each and each set of size at most 6 do the following:
Mark each vertex of as big or small for .
For each component of and each component of , test whether contains an odd antihole and if so, output “”.
If the algorithm has not yet output “”, then output “”.
Proof of correctness:
It is clear that the algorithm runs in polynomial time. By Lemma 1.2, if then is -induced-minor-free. Thus, if the algorithm detects a induced minor, the output “” is correct. Note also that every other time our algorithm outputs “”, it finds an odd minimal separator in an induced subgraph of . Lemma 4.2 implies that the output “” is always correct. Therefore, it suffices to show that if is -induced-minor-free and , then our algorithm outputs “”.
Thus, suppose that is -induced-minor-free but not in . Then, there exists a minimal separator in that is not bisimplicial. This means that is not bipartite and therefore contains an odd cycle. Let be a shortest odd induced cycle in . As , is triangle-free and therefore is an odd hole. Thus, contains an odd minimal separator. Our goal now is to detect an odd minimal separator in .
Let be a shortest odd minimal separator in , and let be two -full components of . We claim that:
There exists a set and a shortest odd antihole in such that either or .
Suppose that there exist and such that contains a shortest odd antihole of . Then, our algorithm will detect such a 4-tuple and will add a shortest odd antihole of to . Note that is then also a shortest odd antihole of . Taking , the claim follows. Otherwise, by possibly interchanging and , we may assume that there exists a shortest odd antihole of such that for every pair . Then, Lemma 3.5 implies that there exists a set of size at most 22, such that . This completes the proof of (1).
Let be a set and be a shortest odd antihole in as in (1). By possibly interchanging and , we may assume that . By Lemma 3.2, every is small for and hence also for . Therefore, is disjoint from . Lemma 3.3 implies that in some iteration, our algorithm will find a connected set that is full to . Hence, it will also find such that and will output “” as required. This completes the proof of correctness.
Finding a triad-free separator
For a graph , let be the set of non-edges of .
Observation 5.1. Let be a set with . Then, for every , . In other words, is disjoint from .
In the following lemma, we show how to find a set that contains a neighbor of at least one endpoint of every non-edge in a minimal triad-free separator . Then, in Lemma 5.3, we show how to use such sets to reduce the problem to finding a bisimplicial separator.
Lemma 5.2. Let be a minimal separator in with and let be an -full component of . Then, there exists a non-edge , a vertex , and a component of such that and for every .
Proof. For and , let denote the component of containing . Choose and such that is maximal, i.e., for all . Suppose that there exists such that . Then, since is connected and full to , there exists a vertex . But then , which is a contradiction. Finally, Observation 5.1 implies that is disjoint from , and hence as required.
Lemma 5.3. Let be a set and let be such that for each and every , . Then, is bisimplicial.
Proof. Define
,
, and
.
We claim that and are both cliques. Suppose that is contained in . Then, , which is a contradiction. Otherwise, suppose that is contained in . Observe that . Since and is disjoint from , the claim follows. It is straightforward to observe that .
We are now ready to prove Theorem 1.4. The intuition behind our algorithm is to first remove a subset of the desired separator to make it bisimplicial, so we can reduce to the list 2-clique cutset problem. We then create an auxiliary graph by adding some gadget vertices (the set in the algorithm description) that together with the lists of allowed vertices ensure that the two cliques found can be combined with while still remaining triad-free.
Theorem 1.4. Let be two vertices in a graph . There exists a polynomial-time algorithm that either finds a triad-free - separator in or determines that none exists.
Proof. First, we describe the algorithm.
For and , let denote the component of containing . Let . For every pair , define and do the following. Let
be a set of new vertices. Define a new graph with vertex set and edges as follows:
, and
for every .
We create an instance of the list 2-clique cutset problem for in the following way. Let and set
,
,
.
Suppose that admits a solution . Then, set . Check if is a triad-free - separator in , and if so then output it. If after all iterations no triad-free - separator in has been found, then output “no solution exists”.
Proof of correctness:
Computing the set takes polynomial time since there are at most pairs for which we need to compute . By Theorem 1.5, constructing an instance and solving it also takes polynomial time. Lastly, checking that is a triad-free - separator can also be done in polynomial time.
It is clear that if our algorithm outputs a set , then it is a triad-free - separator. Hence, it suffices to show that if there exists a triad-free - separator, then our algorithm will find it.
Thus, suppose that there exists a triad-free - separator. Note that then there exists a minimal triad-free - separator . Suppose that is a clique. Then, for our algorithm will set , meaning . Thus, the created instance of the list 2-clique cutset problem will admit a solution for some sets with . By Theorem 1.5, the list 2-clique cutset algorithm will find a solution to and thus a bisimplicial - separator .
Therefore, we may assume that . Let be the -full components of containing and , respectively. Let be the union of all components of . By Lemma 5.2, contains sets and such that for each and every non-edge , . Let . By Lemma 5.3, we get that is bisimplicial. Observe that is a clique in such that each has at most one non-neighbor in . Thus, the created instance of the list 2-clique cutset problem admits a solution for some cliques such that . Let be a solution to that our algorithm found. By the way we defined the instance, we get that and that is anticomplete to . It follows that is a - separator in . Now, suppose that contains a triad . Since and are both cliques and are disjoint from , it follows that (after possibly relabeling ) . Note that follows by our definition of . But then is a triad in , which is a contradiction. It follows that is a triad-free - separator in . This completes the proof.
Corollaries of Theorem 1.4
Corollary 1.6. The list triad-free cutset problem admits a polynomial-time algorithm.
Proof. We will show a reduction to the problem of finding a - triad-free separator. Let be a graph and let be an instance of the list triad-free cutset problem. Let and let . Obtain from by adding the vertices such that
,
, and
for every .
Use the algorithm from Theorem 1.4 to find a triad-free - separator in . If none exists, output “no solution exists”. Otherwise, let be the component of containing , let be the union of all the other components of , and output .
Proof of correctness:
We show that admits a solution if and only if there exists a triad-free - separator in .
Suppose that admits a solution . Then, is anticomplete to in . Let be as defined by our algorithm and note that since , we have that is triad-free. Thus, is a triad-free - separator in .
For the other direction, suppose that there exists a triad-free - separator in . Define as in the algorithm description. It is straightforward to check that is a partition of . Since and consist of disjoint components of , we have that is anticomplete to . Observe that since both and are complete to it. It follows that cannot contain a vertex from because then would form a triad, which is a contradiction. Hence, from the definitions of and , it follows that , and . Lastly, is triad-free since is triad-free. Therefore, is a solution to . This completes the proof.
Corollary 1.7. The connected list triad-free cutset problem admits a polynomial-time algorithm.
Proof. Let be a graph and let be an instance of the connected list triad-free cutset problem. First, create an instance of the list 2-clique cutset problem. If admits a solution , then output . Otherwise, for each of the induced paths -- in do the following. Create an instance of the list triad-free cutset problem. If admits a solution for some path --, then output it. Otherwise, output “no solution exists”.
Proof of correctness:
Suppose that admits a solution . If is a clique, then admits a solution. It is also clear that every solution to is a solution to . Thus, we may assume that is not a clique. Since is connected, there exists an induced path -- in . Therefore, admits a solution. For the converse, let be a solution to . Observe that and note that because is triad-free, every vertex is adjacent to either or . Thus, is connected, and therefore every solution to is also a solution to . This completes the proof.
For the proof of Proposition 1.8, we will need the following definitions and Theorem 6.1. A vertex cover of a graph is a set of vertices such that every edge of has an endpoint in . A minimal vertex cover is a vertex cover such that no proper subset of is a vertex cover. The extension minimal bipartite vertex cover problem takes as input a bipartite graph and a vertex set and asks to determine whether has a minimal vertex cover with .
Theorem 6.1 (Casel, Fernau, Ghadikolaei, Monnot, Sikora [2]). The extension minimal bipartite vertex cover problem is NP-hard.
Proposition 1.8. The minimal list triad-free cutset problem is NP-hard, even when the input graph is the complement of a bipartite graph.
Proof. We show a reduction from the extension minimal bipartite vertex cover problem to the minimal list triad-free cutset problem. Let and be an instance of the extension minimal bipartite vertex cover problem. Let be a bipartition of . Obtain the graph from by making and cliques and adding the vertices and such that and . Note that is the complement of a bipartite graph, so in particular is bisimplicial. Let and . Create an instance of the minimal list triad-free cutset problem.
Let be a minimal vertex cover of with . We claim that is a solution to . Let be an instance of the list triad-free cutset problem. It is straightforward to check that is a solution to . To show the minimality of , let be a vertex and suppose that . Then, is adjacent to by construction. Since is a minimal vertex cover of , it also follows that there exists a vertex such that is adjacent to it. The case of follows analogously.
For the converse, let be a solution to . It is clear that and that is a vertex cover of . Since and , it follows that for every there exists a vertex in that is adjacent to . Thus, is a minimal vertex cover of . This completes the proof.
Acknowledgments
We thank Malory Marin and Nicolas Trotignon for their involvement in the early stages of the work on Theorem 1.4.
AI Disclosure
The algorithm from Theorem 1.4 was developed in a conversation with GPT-6 Astra. The write-up is entirely due to the authors.
References
- [1]Kathie Cameron, Elaine M. Eschen, Chinh T. Hoàng, and R. Sritharan. The complexity of the list partition problem for graphs. SIAM Journal on Discrete Mathematics, 21(4):900–929, 2008.DOI
- [2]Katrin Casel, Henning Fernau, Mehdi Khosravian Ghadikolaei, Jérôme Monnot, and Florian Sikora. Extension of vertex cover and independent set in some classes of graphs. In Pinar Heggernes, editor, Algorithms and Complexity, pages 124–136, Cham, 2019. Springer International Publishing.
- [3]Maria Chudnovsky, Alex Scott, and Paul Seymour. Finding a shortest odd hole. ACM Trans. Algorithms, 17(2), April 2021.arxiv.org/abs/2004.11874
- [5]Clément Dallard, Fedor V. Fomin, Petr A. Golovach, Tuukka Korhonen, and Martin Milanič. Computing tree decompositions with small independence number. ACM Trans. Algorithms, 22(1), November 2025.arxiv.org/abs/2207.09993
- [6]Clément Dallard, Martin Milanič, and Kenny Størgel. Treewidth versus clique number. III. Tree-independence number of graphs with a forbidden structure. Journal of Combinatorial Theory, Series B, 167:338–391, 2024.arxiv.org/abs/2206.15092
- [7]Reinhard Diestel. Graph theory, volume 173 of Graduate Texts in Mathematics. Springer, Berlin, Fifth edition, 2017.
- [8]G. A. Dirac. On rigid circuit graphs. Abhandlungen aus dem Mathematischen Seminar der Universität Hamburg, 25:71–76, 1961.DOI
- [9]Martin Charles Golumbic. Algorithmic Graph Theory and Perfect Graphs (Annals of Discrete Mathematics, Vol 57). North-Holland Publishing Co., NLD, 2004.
- [10]Martin Milanič, Irena Penev, Nevena Pivač, and Kristina Vušković. Bisimplicial separators. Journal of Graph Theory, 106(4):816–842, 2024.arxiv.org/abs/2312.10830
- [11]Robert E. Tarjan and Mihalis Yannakakis. Simple linear-time algorithms to test chordality of graphs, test acyclicity of hypergraphs, and selectively reduce acyclic hypergraphs. SIAM Journal on Computing, 13(3):566–579, 1984.DOI