Manuscript Offprint
arXiv:2610.22133Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
In a seminal paper, Kratsch and Spinrad [SODA 2003 and SIAM Journal on Computing 2006] studied several important problems in structural graph theory that anticipated two trends in fine-grained complexity, both from the upper- and lower-bound side:
From the upper-bound side, for each of these problems the authors give an intermediate running time strictly between and , where is the matrix multiplication exponent. When optimized, this running time can be made . By now, many more problems can be solved in this running time: directed unweighted or node-weighted APSP, a variety of matrix products such as max-min and dominance, RNA Folding and many more. For some of these, the community has also developed tools suggesting that this intermediate running time is necessary.
From the lower-bound side, the authors give lower bounds of , conditioned on three natural hardness hypotheses on the complexity of quantified variants of triangle detection that account for different types of hardness of such problems.
Despite this, it has remained open for over 20 years which of these two pieces of evidence reflects the truth for the problems that Kratsch and Spinrad study: whether the intermediate running time is indeed necessary and stronger lower bounds hold, or whether the hardness evidence of Kratsch and Spinrad is essentially tight. In this paper, we resolve this question and show that the latter is the case: all problems admit an time algorithm.
As an additional contribution, we make partial algorithmic progress on further problems in structural graph theory of intermediate complexity, improving over previous work [Chiu and Lu, STACS 2022 and Information and Computation 2024][Spinrad, Discrete Applied Math 2004].
Funding Jakob Nogler: Supported by the Akamai Presidential Fellowship and by a fellowship from the Siebel Scholars Foundation; Agnès Totschnig: Supported by a MathWorks Fellowship; Virginia Vassilevska Williams: Supported by NSF Grant CCF-2330048, BSF Grant 2024233 and a Simons Investigator Award
1 Introduction
Many problems in graph and matrix algorithms have natural cubic running times in terms of , the number of nodes in the graph or the number of rows/columns of the matrices. For some perhaps infamous examples, such as All-Pairs Shortest Paths (APSP) in weighted graphs, this cubic running time has persisted for many decades, except for improvements, leading to conjectures that cubic time is the best possible (e.g., [Vas18, WW10, VW18]). For other problems, substantial polynomial improvements have been obtained. The prime example for this is matrix multiplication. The exponent is defined as the smallest real value for which matrices can be multiplied in time for all . It has been known since 1969 that [Str69], and while the popular belief among computer scientists is that , the best known upper bound is [DEK26].
Via reductions to matrix multiplication, a huge variety of problems have truly subcubic time algorithms: many linear algebraic operations (matrix inverse, linear system solving, LUP decompositions and more), a variety of “funny” matrix products over other algebraic structures such as the max-min product of matrices [VWY09], many graph problems in unweighted graphs such as unweighted APSP [Zwi02, Sei95], structure similarity problems such as RNA-Folding [BGSV19], and many more.
time for constant .
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
There are simple reductions from Boolean matrix multiplication to many of these problems, showing that time seems necessary to solve them. This is true for instance for unweighted APSP and most “funny” matrix products. For even more problems, time lower bounds can be proven under stronger but still plausible assumptions such as that detecting a triangle in an n-node graph requires time. For problems with time conditional lower bounds and subcubic time upper bounds using matrix multiplication, a natural question is:
Can these problems be solved in time or is there a higher conditional lower bound?
The term “intermediate problem” has emerged to capture problems that are in truly subcubic time but whose running times are strictly larger than . Several recent works study such problems within the context of fine-grained complexity [BKPR19, LPV20, VX20a, CVX21, Fis26], providing conditional lower bounds for for some of these problems.
Most studied intermediate problems have running times that are if ; a popular running time is . This is the best known running time for the Dominance Product [Mat91], max-min matrix product and All-Pairs Bottleneck Paths [VWY07, DP09], All-Pairs Non-Decreasing Paths [Vas10, DGZ18, DJW19], Monotone Min-Plus Product [BGSV19, VX20b, GPVX21, CDXZ22], Language Edit Distance (also known as Scored Parsing [AP72, Sah17, BGSV19]), RNA Folding [NJ80, Aku99, ZTZU11, VGF14, Sah17], Dyck Edit Distance [Sah14, BGSV19, DKS22, FGK 24], Tree Edit Distance [Mao21, Dür23, NPS 25], Node-weighted APSP [Cha10, Yus09, AFJ 25], and Min-Equality Product [VX20a].
One of the very first papers to prove lower bounds under plausible conjectures for a variety of graph problems, while also providing subcubic time algorithms using matrix multiplication, is a seminal SODA 2003 paper by Kratsch and Spinrad [KS06]. Almost all of the problems studied by [KS06] were solved in time. With a small change the algorithms can be made to run in time. This motivates the following questions.
Are these problems intermediate, or can they be solved in time? How do these problems fit into the recently established fine-grained hierarchy?
Even the name of Kratsch and Spinrad’s paper “Between and ” (here ) suggests that the problems in the paper are intermediate. Despite much recent progress on the fine-grained complexity of intermediate problems, the problems studied in Kratsch and Spinrad’s paper have not seen improvements since the paper was written more than 20 years ago.
The main contribution of our work is to show that these problems are not intermediate. They, in fact, admit conditionally tight time algorithms.
Computing the neighborhood-deleted components of G: Specifically, for each , compute the connected components of (the graph obtained by removing v and its neighborhood).
The neighborhood connected components algorithm of [KS06] uses an inefficient way to list witnesses of Boolean matrix multiplication. Just by replacing Lemma 2.1 in [KS06] with the approach of [AGMN92, GKL09] to list up to witnesses per pair in time, one obtains a running time for neighborhood-deleted components which gives via blocking or with rectangular matrix multiplication. For the rest of the problems, in [KS06] there is an additional cost after the neighborhood-deleted components are computed.
-
Listing or finding the extremities of G: These are vertices such that is connected. This can be derived directly from the previous problem.
-
Determining whether G has a star-cutset or a clique-cutset: A cutset is a set of nodes such that is disconnected; it is a star-cutset if there is a central node in S connected to all other nodes in S, and a clique-cutset if is a clique.
-
Recognizing AT-free graphs: This involves verifying whether G contains an asteroidal triple—an independent set of three vertices such that, between any two vertices in the triple, there exists a path avoiding the neighborhood of the third vertex.
-
Listing or finding dominating pairs: These are distinct nodes such that for every path and every node , the path contains at least one neighbor of or contains itself. (In other words, the vertex set of any path between these two vertices is a dominating set of the graph.)
-
Listing or finding two-pairs: These are distinct nodes such that all induced (or equivalently, chordless) paths between and have length two.
For all of these problems, the authors present algorithms with running times strictly between and . Specifically, as mentioned earlier, an -time algorithm is provided for all problems, except for recognizing AT-free graphs, which is solved in time. As mentioned earlier, the time can be replaced by by slightly modifying the algorithms. Prior to [KS06], only -time algorithms were known for some of these problems, which still take time on dense graphs.
1.2 Why seems needed for all the problems
Spinrad and Kratsch provide evidence that solving the problems listed above requires at least time. To support this, they identify three problems for which no algorithms faster than are currently known (see Figure 1 for the hardness proven by [KS06] from these problems). For each of the three problems one hypothesizes that in the word-RAM model with bit words, the problem requires time.
Determining whether a graph contains a triangle: The corresponding Triangle Detection Hypothesis that the problem requires time has been repeatedly used within fine-grained complexity (e.g., [Vas18, VW18, AV14]). It is also supported by the subcubic equivalence [WW10, VW18] between triangle detection and Boolean matrix multiplication.
Determining whether a graph contains a dominated vertex: A dominated vertex is a node x such that for some . This problem turns out to be exactly equivalent to the Orthogonal Vectors (OV) problem in n dimensions (see Section B in the appendix for a proof). Whether this high-dimensional OV problem requires fast matrix multiplication was first asked almost 3 decades ago by Aingworth, Chekuri, Indyk and Motwani [ACIM99]. The hypothesis that OV in n dimensions requires time has been used in fine-grained complexity in recent years (see e.g., [DK21]).
Determining whether a graph contains a simplicial vertex: A node v is simplicial if is a clique. The hypothesis that Simplicial Vertex requires time has also been used in recent years for hardness results in fine-grained complexity (see e.g., [DJVW22]).
They actually asked whether distinguishing between diameter 2 and 3 in an undirected graph in subcubic time without matrix multiplication, but this problem is easily seen to be equivalent to OV in n dimensions, e.g., via a reduction as in [RV13, Vas18].
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
Hard as Triangle-Free Recognition: Recognizing AT-free graphs, finding a dominating pair, verifying a specific vertex pair is a dominating pair, identifying all extremities.
Hard as Testing for a Dominated Vertex/High Dimensional OV: Determining whether a graph has a two-pair, determining whether a graph has a star cutset.
Hard as Testing for a Simplicial Vertex: Determining whether a graph has a clique cutset.
Figure 1. Hardness of the problems solved in [KS06].
OV and Triangle detection are central problems in fine-grained complexity. Simplicial Vertex has been used only a handful of times as a source of hardness. Nevertheless, it is a very natural problem. In fact, the three hard problems that Kratsch and Spinrad propose are just different quantifications of the following form:
Triangle detection has quantifiers in Equation (1), Simplicial Vertex has , and OV in dimensions (and dominated vertex) is equivalent to the case (this requires a bit of a proof since we need – see Section B in the appendix). Kratsch and Spinrad [KS06] provide evidence that tight reductions between these different quantifications might be difficult due to an inherent difference in the non-deterministic complexity of the problems. Nevertheless, we do know that fine-grained subcubic (but non-tight w.r.t. ) reductions exist from Simplicial Vertex and Dominated Vertex to Triangle Detection because both these problems can be solved using Boolean Matrix Multiplication (BMM) and BMM is fine-grained equivalent to Triangle Detection [WW10, VW18].
Our Results
We show that all the problems presented by Spinrad and Kratsch can be solved in time. Therefore, none of the presented problems fit into the aforementioned category of intermediate problems. If one is willing to believe that -dimensional OV, Simplicial Vertex, and Triangle Detection all require time, then our algorithms are also optimal.
We start with neighborhood-deleted components, noting that this is equivalent to a more general problem that we call the induced subgraph connected component problem: Given an -vertex graph and a family of subsets of , compute the connected components of for each . This equivalence can easily be seen to hold for : in one direction, we choose the sets to be the graphs obtained by deleting the (closed) neighborhoods; in the other direction, we introduce a clique containing one vertex for each , where each such vertex's neighbors are exactly the vertices not in its corresponding set .
We show that the induced subgraph connected component problem is equivalent to multiplying an Boolean matrix by an Boolean matrix. This equivalence demonstrates that we can compute the connected components of multiple graphs more efficiently, provided they are all induced subgraphs of a single underlying graph.
Main Theorem 1. There is a deterministic algorithm that solves the induced subgraph connected component problem in time for an n-node input graph and a non-empty input set S.
To be precise, we show this for all problems in the journal version of [KS06]. The conference version contains one additional problem (finding clique cutsets) for which an -time algorithm was found concurrently [HTV05]. Later, this result was extended to cliqueset decompositions in matrix multiplication time [CD18].
We note that one (perhaps minor) reason we present this result for the induced subgraph connected component problem, as opposed to neighborhood deleted components, is that this equivalence with rectangular Boolean matrix product holds even when .
Here denotes the running time of multiplying a Boolean matrix by an Boolean matrix.
Lemma 4.2. Given two Boolean matrices A and B of size and , one can construct in time an instance of the induced subgraph connected component problem on a 2n-node graph with a set of size , such that solving this instance yields the product AB.
As a corollary to Main Theorem 1, we obtain algorithms for the following problems (for details on how the preceding algorithm implies these results, we refer the reader to [KS06, Corollaries 3.2, 3.3, and 3.4]).
Corollary 1.1. The following problems have a deterministic -time algorithm on an n-node input graph: computing neighborhood-deleted components in a graph, listing all extremities in a graph and determining whether the graph has a star cut-set, determining whether two fixed vertices x, y are a two-pair.
We also obtain an -time algorithm for recognizing AT-free graphs (a related result was previously known only for claw-free AT-free graphs in matrix multiplication time [HK02]), as well as for listing all dominating pairs and two-pairs.
Main Theorem 2. There is a deterministic -time algorithm that determines if a graph is AT-free.
Previously, the fastest time algorithm for recognizing AT-free graphs ran in time [KS06].
Main Theorem 3. There is a deterministic -time algorithm for listing all dominating pairs.
This improves upon Spinrad and Kratsch's running time.
Main Theorem 4. There is a deterministic -time algorithm for listing all two-pairs.
The previous best running time was Spinrad and Kratsch's .
We remark that all our algorithms are deterministic, and the underlying algorithms are remarkably simple. Although the algorithms themselves are straightforward, the proofs establishing their correctness are occasionally more complex (e.g., recognition of AT-free graphs); in such cases, the more involved proofs reveal new structural insights into the problems.
Finally, we study two related problems not addressed in the work of [KS06]. While we only achieve partial progress on these, we suspect their time complexity may strictly exceed . Their fine-grained complexity offers an interesting direction for future study, so we leave both problems open to the community.
Induced Non-shortest Paths. The first problem we propose is a generalization of verifying whether two vertices form a two-pair. More generally, given two vertices at distance , one can ask whether there exists an induced (equivalently, chordless) path between them that is not a shortest path (note that every shortest path is necessarily induced). Following previous work, we call such a path a uv-trail. In this terminology, the problem of listing two-pairs is the all-pairs version of this problem restricted to vertex pairs with .
This problem is not new: it was recently introduced by Berger, Seymour, and Spirkl [BSS21], who gave an -time algorithm for a single fixed pair. This was very recently improved by Chiu and Lu [CL24] to , i.e., the time required to multiply two matrices. No lower bound was provided, nor any evidence that matrix multiplication is necessary. We show that matrix multiplication seems necessary, even for a single pair with , by giving a reduction from triangle detection.
Lemma 4.16. For any , suppose there exists an algorithm that, in time , determines whether an -node graph contains a uv-trail for two vertices with . Then there is an algorithm solving triangle detection in time .
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
We find this problem interesting from a fine-grained complexity viewpoint because it appears closely related to another area whose fine-grained landscape still has many open problems: the detection of induced patterns (see [FKLL12, VWWY15, BKS18, DVV21, DV22]), where also runtimes of are common, e.g., for detecting a six-clique or other patterns.
Finally, we mention that algorithms for detecting uv-trails have been used to improve the runtime for recognizing graphs in which all holes have the same length. This was first achieved by Cook et al. [CHP 24] in time and subsequently improved by Chiu and Lu [CL24] to .
Recognition of Quasi-Triangulated Graphs and Decremental Simplicial Vertex. The second problem is the recognition of another generalization of triangulated graphs, called quasi-triangulated graphs. A graph G is quasi-triangulated if and only if every induced subgraph of G contains a simplicial vertex or a cosimplicial vertex (i.e., a simplicial vertex in the complement). Just as triangulated graphs can be recognized by iteratively removing a simplicial vertex from the resulting graph, quasi-triangulated graphs can be recognized similarly by iteratively removing a simplicial or cosimplicial vertex. Thus both classes can be recognized using the following subroutine.
Decremental Simplicial Vertex
Input: An unweighted graph .
Update: Delete a given vertex v together with all its incident edges.
Query: Does the current graph G contain a simplicial vertex? If so, return one.
Hence, to recognize whether a graph G is quasi-triangulated, it suffices to maintain a incremental simplicial vertex subroutine for both G and its complement , proceeding iteratively as follows: In each iteration, check whether G or contains a simplicial vertex. If such a vertex v exists in either graph, remove v from both G and . If this elimination process continues until the graph is empty, G is quasi-triangulated. Otherwise, if the process halts because neither G nor contains a simplicial vertex, the algorithm terminates and rejects G.
In reality, triangulated graphs can be recognized faster, in linear time [RTL76], using another simple algorithm. However, the fastest algorithm for quasi-triangulated graphs runs in time [Spi04, Hoà03], where the recognition algorithm relies on the incremental simplicial vertex subroutine. We find this last problem especially interesting from a fine-grained point of view because edge-decremental triangle detection has recently been shown to admit a -time algorithm [BBF 26]. In this light, it would be interesting to see whether Triangle Detection, Simplicial Vertex, or High-dimensional OV all retain a -time algorithm, or whether some interesting difference emerges.
Our partial progress here is an improvement of the algorithm for Decremental Simplicial Vertex to , which on sparse graphs can be balanced to be something slightly better.
Theorem 4.14. There is an algorithm for Decremental Simplicial Vertex that on an n-node graph runs in time
In particular, with the current bounds on rectangular matrix multiplication this gives a running time of on dense graphs. For sparse graphs, bounding the rectangular product naively by dividing it into blocks yields a running time of .
Notably, the running time we obtain is the same as the best known running times for both directed unweighted APSP [Zwi02] and Min Witness Product [CKL07].
We used the bounds from [ADV 25] plugged into van den Brand’s optimization tool [Bra].
2 Overview
In the following section, we give an overview of the proofs of Main Theorem 1, Main Theorem 2, and Main Theorem 3: the first because its proof is simple and can be explained briefly, and the second and third because they let us highlight the additional structural properties we establish for these problems.
2.1 Induced Subgraph Connected Components in Matrix Multiplication Time
Given a graph and a family of subsets , our goal is to compute, for each , the connected components of . The core idea of the algorithm is to gradually grow the connected components of for every . We proceed in rounds, maintaining a partition of each that refines its connected components. Let denote a unique identifier associated with the part containing node in .
We initialize the process with singleton parts for the nodes in every . In each round, for every and node , we check whether there exists an edge such that . Discovering such an edge allows us to merge the respective parts and update accordingly for each . We claim that rounds suffice for these partitions to grow into the connected components. Indeed, any part that does not yet form a complete connected component will, by induction, contain at least nodes after the -th round.
It remains to briefly outline how to find the edges across which we merge parts. We accomplish this in parallel for each via matrix multiplication. To this end, in each round we assign every part in each a value of zero or one, chosen uniformly and independently at random. Let denote the bit assigned to the part .
Note that if, for some and , there exists an edge with , then with probability we have and . Furthermore, edges contained entirely within a single part of always have their endpoints assigned the same bit. Thus, it suffices to search for an edge spanning parts with differing assigned bits, repeating the procedure a logarithmic number of times to guarantee success with high probability.
The product we perform is between an Boolean matrix (indexed by the sets in and the vertices in ) and the adjacency matrix of (indexed by the vertices in ). For the matrix , we set if and only if and . It is easy to see that for every and with , there exists an inter-part edge if and only if . The Boolean matrix multiplication witness for this product directly provides the desired edge.
It is also not difficult to derandomize the above procedure. In the full proof, we provide such a derandomized version with a slightly more formal presentation.
2.2 Recognizing AT-free Graphs in Matrix Multiplication Time
We proceed to outline the main idea behind our -time algorithm to verify whether a graph contains an AT. We recall that such a triple consists of an independent set such that there exists a path between every pair of nodes in that does not pass through the neighborhood of the third node.
Before presenting the main idea of the algorithm, we note that the triangle-detection hardness of finding such a triple can be shown to rely solely on the condition that forms an independent set. To clarify our point, we consider the following elementary reduction demonstrating how, given a tripartite graph , we can build a graph such that contains a triangle
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time

a
b
Figure 2. Visualization of the lower bound construction and a fact that we use in the -time algorithm for asteroidal triple detection. In (a), dashed gray edges join the auxiliary vertices .
if and only if contains an AT (see Figure 2a). To achieve this, it suffices to invert all edges in (including those within X, Y, and Z, which consequently become cliques) and add three new vertices that are fully connected to , , and , respectively. We also add the edges , , and . It is easy to see that satisfies the claimed property. However, notice that for every triple with , , and , there is always an path avoiding (and similarly for the other pairs). This means that the reduction relies solely on the fact that an AT is an independent set, as the path condition holds vacuously. The open question was thus whether this path condition which is not exploited in the lower bound could introduce additional computational hardness.
Moving on to the algorithm, we first illustrate Kratsch and Spinrad's approach. Given a graph , define for each the graph , obtained by removing the closed neighborhood of . As a first step, Kratsch and Spinrad compute the neighborhood-deleted components, i.e., the connected components of each , and then construct a graph as follows:
■1 for each and each connected component of , they introduce a node in ; and
■2 for each non-edge of , they add an edge in , where now denotes the connected component containing in .
It is not difficult to see that contains an AT if and only if contains a triangle. This allows us to solve the problem by running a triangle detection algorithm on . However, due to the number of nodes in , we cannot use standard triangle detection; instead, we must resort to sparse triangle detection, which runs in time , where is the number of edges [AYZ97]. Since has edges, this running time becomes .
The first key fact we prove is that if contains a triangle and is a connected component containing exactly the same nodes as , then is also a triangle (even if and come from different graphs ). Thus, for each distinct connected component across all graphs , it suffices to retain only one representative in .
It is well known that triangle detection on an n-node graph can be reduced to triangle detection on a tripartite 3n-node graph: simply create three copies of the vertex set and add edges only between copies of adjacent nodes that reside in different vertex partitions.
Technically, the graph we construct is the knotting graph of . Knotting graphs were introduced by Gallai [Gal67], who showed that is a comparability graph if and only if is bipartite.
To be precise, the observation regarding the construction of this graph is due to Lekkerkerker and Boland [LB62], while the use of sparse matrix multiplication was introduced by Köhler [Kö04]. However, Kratsch and Spinrad were the first to achieve an overall subcubic running time, by computing the neighborhood-deleted components subcubically.
In a general graph, the number of distinct components in can be as large as ; however, we only need to consider AT-free graphs. That is, if we can prove an upper bound of on the number of distinct components for AT-free graphs, we can first check whether the actual number of distinct components exceeds this bound. If it does, we immediately report that an AT triple exists; otherwise, we run a triangle detection instance on nodes. It turns out—and we believe this is a highly interesting structural result of independent interest—that such a bound is indeed possible for AT-free graphs.
Theorem 4.7. Let be an AT-free graph. Moreover, let , and let be the set of all connected components of . Then there are at most distinct components across all ; that is, n log n for .
Although the full proof is one of the more involved parts of our paper, it rests on a simple observation. The following basic fact serves as the first building block of the proof and provides intuition for why the absence of an AT yields the desired bound.
Consider a node and three distinct connected components , and of . Furthermore, consider three nodes , , and , together with the out-neighborhoods , , and , which consist entirely of nodes in (see Figure 2b). Observe that if forms an AT, then all of the following conditions must hold: , , , , , and ; otherwise, the neighborhood-disjoint paths required for the AT could not exist. Consequently, if is AT-free, at least one of these conditions must fail. Without loss of generality, assume that , which is equivalent to . It is not difficult to see that this implies is also a connected component of . In this sense, being AT-free restricts the number of distinct components, though establishing the full bound requires a more involved argument.
2.3 Listing Dominating Pairs in Matrix Multiplication Time
Next, we turn to listing all dominating pairs of an input graph . Recall that form a dominating pair if every path is a dominating set, and recall that denotes the connected component containing in . The connection between this problem and neighborhood-deleted components is that is not a dominating pair if and only if there is some node such that ; that is, there exists a path avoiding the neighborhood of . In such a case, we say that the component witnesses the non-dominating pair .
Following this logic, a naive algorithm would simply iterate over each , examine each connected component of , and mark all pairs of distinct nodes as non-dominating. We note that for a subset of connected components (potentially spanning different ), we can implement this in time . To achieve this, it suffices to construct an matrix , indexed by vertices in and components in respectively, with if . The Boolean product indicates exactly when a pair is witnessed as non-dominating by some component in , which occurs precisely when . Kratsch and Spinrad's approach distinguishes between large components, which contain at least nodes, and small ones. Since there can be at most of the former across all , marking all their pairs as non-dominating via the matrix method takes time. They also show how to process small components in time; balancing these two bounds yields an overall running time of .
Our algorithm differs in two ways:
■1 Instead of collecting into the set all connected components above a threshold size , we include only the largest connected component from each . By doing so, it takes only time to find all non-dominating pairs witnessed by these components.
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
■2 On the other hand, for non-dominating pairs that have no witness in , we prove an interesting structural result: if has no “large” witness, then it must have many witnesses. More specifically, we prove that if is a non-dominating pair witnessed by some in , then there are at least nodes such that contains a component witnessing . Assuming for simplicity that for all , we can exploit this property as follows: we sample nodes and, for each sampled node , find all non-dominating pairs witnessed by any component of . This takes time per sampled node , since the sizes of the components in each sum to .
In the full proof, we again provide a derandomized version of the algorithm.
Open Problems
To conclude this section, we list some other open problems:
First, we report an open problem posed in [KS06]. It is well established that every AT-free graph contains a dominating pair [COS97], which can, in fact, be found in linear time [COS99]. However, neither AT-free graph recognition nor finding a dominating pair in a general graph can be solved in linear time unless or some fine-grained complexity hypothesis fails. This leads to an interesting open question: is there a robust, linear-time algorithm for finding a dominating pair in an AT-free graph? Here, “robust” is used in the sense of [RS03]; a robust linear-time algorithm must take an arbitrary (i.e., not necessarily AT-free) graph as input and, in linear time, either output a dominating pair or correctly report that the graph is not AT-free.
We showed that detecting an AT-triple has the same time complexity as detecting a triangle in a graph. In time , however, we can solve problems stronger than triangle detection, e.g., the all-edge triangle problem, where for each edge we want to know whether it is contained in a triangle. Our approach for detecting an AT-triple does not seem to yield such an all-edge version in time, and the latter seems considerably more difficult: namely, for each pair x, y we want to know whether there is a z such that is an AT. It would be interesting to determine whether a running time of is achievable, or whether some hardness result rules this out.
Generally, there is a plethora of other important structures in structural graph theory that admit polynomial-time algorithms which are nonetheless clearly far from optimal, where a fine-grained complexity lens could help uncover new structural properties; see, e.g., perfect graphs [CLV03, CKS05] or graphs with even or odd holes [CL15, CSSS20, CLL22].
3 Preliminaries
Set notation. For integers , we write to represent the set , and to denote the set . We define and similarly.
Graph notation. All graphs considered in this paper are undirected. For a graph , we denote by the number of nodes and by the number of edges. For a node we indicate with its neighborhood, and with its closed neighborhood. Similarly, we define the neighborhood of a set as , and its closed neighborhood as . In case of ambiguity due to the existence of multiple graphs, we write as subscript the graph which the neighborhood refers to, e.g., .
We indicate with the graph obtained by removing from the closed neighborhood, i.e., . Lastly, for a node , we let be the connected component of that contains . More specifically, is the set of nodes in that are in the same connected component as .
Finally, we say that a (simple) x-y path in avoids a set , if it contains no node in .
Matrix Multiplication and Witnesses. For our algorithms we need to be able to list witnesses for a Boolean matrix product. For that purpose, we use the following result.
Theorem 3.1 (Deterministic Witness Reporting [AN96]). There is a deterministic -time algorithm that, given a Boolean matrix and a matrix , reports one witness for each nonzero entry of the Boolean matrix product . That is, for every pair such that , the algorithm reports an index satisfying and .
Deterministic Fingerprints for Partitions. Suppose we are given a graph and a family of vertex sets . Further, let be the connected component of in . To quickly check whether for distinct and , we introduce the following fingerprints for the connected components.
Lemma 3.2. Consider a set together with partitions of , and for let denote the set of the -th partition containing . Then, in deterministic time , we can construct functions with that assigns a fingerprint to each set of each partition, such that if and only if .
Proof. Let be the multiset containing all sets. We proceed as follows.
Our algorithm. First, we sort the elements of each set , looking at them as lists. Equal lists have equal size, so we partition into buckets by length; lists in different buckets get different fingerprints. Within a bucket all lists have length , and we sort them lexicographically, making equal lists adjacent. A single scan then assigns fingerprints by incrementing a global counter whenever the current list differs from its predecessor, and we store as the fingerprint of in a table indexed by . It is not difficult to see that this construction satisfies the claimed property.
Runtime. Sorting sets initially, bucketing by lengths, and the final scan cost at most .
For the lexicographic sort on we use comparisons, where each comparison costs time. Overall this costs , because the sizes of the lists sum up to and ; empty buckets contribute zero.
4 Proofs
4.1 Induced Subgraph Connected Components in Matrix Multiplication Time
In this subsection, we present the proof for Main Theorem 1 and Lemma 4.2, which proves the upper and lower bounds for the induced subgraph connected component problem.
Main Theorem 1. There is a deterministic algorithm that solves the induced subgraph connected component problem in time for an n-node input graph and a non-empty input set S.
Proof. Let be an undirected -node graph, and let be non-empty. To compute the connected components of for each , we rely on the following subroutine.
Claim 4.1. For each , let be a function, where . Then, in time , for each and such that , we can find a node that satisfies , and , or verify that no such node exists.
Proof. Let be the number of bits required to represent any value in . The algorithm proceeds as follows:
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
(i) For each , we construct two Boolean matrices for , indexed by sets in (rows) and by nodes in (columns), defined as follows:
(ii) For each , we use Theorem 3.1 to compute the two BMM products and in time , where denotes the adjacency matrix of . We also compute witnesses for all non-zero entries in these products.
(iii) To find a suitable for each and such that , we iterate as follows: for each , let be the -th bit in the binary representation of . If for any we have , we report the corresponding witness node of the product as the node for .
Regarding correctness, fix and such that , and let be defined as above. Note that for each , we have if and only if there exists a node such that , , and the -th bit of differs from the -th bit of . From this, the correctness is immediate: we only report a node if . Conversely, if such a exists, then and must differ in at least one bit, ensuring that we find such .
Regarding the runtime, we use many times Theorem 3.1; all other operations can be implemented altogether in time .
Our algorithm. With the subroutine setup in place, we now give the full algorithm.
(i) For each , initialize a union-find (disjoint-set) data structure over (equivalently, over the universe ). The invariant we maintain is that every set in is contained in a connected component of (or is a singleton corresponding to a node not in ).
(ii) We run for rounds. In the -th round, for each and , we define
We then invoke the subroutine from Claim 4.1 to find, for each and , a witness as specified there (or determine that no such exists). Whenever we obtain such a witness, we perform \text{UNION}_D_S(u, w). The invariant is preserved because Claim 4.1 guarantees that and that both . After processing all such unions, we proceed to the next round.
(iii) For each , output all sets in except singleton sets corresponding to nodes ; these are the connected components of .
Correctness. It remains to show that after rounds we have that the sets we maintain are equal to the connected components. For each , let denote the number of sets in that are strict subsets of connected components of . In each round, decreases by at least a factor of 2: every set counted by has at least one outgoing edge to another set in the same connected component, and the corresponding merge ensures that in the next round it is combined with another set. Hence after rounds, for every , so each set in exactly matches a connected component of .
Runtime. In each of the rounds we use Claim 4.1 and perform at most union operations. This gives an overall runtime of .
A union-find (disjoint-set) data structure maintains a partition of a universe into disjoint sets, supporting (returns the representative of 's set) and (merges the two sets), with near-constant amortized time using union-by-rank and path compression [Tar75]. Here denotes the inverse-Ackermann function.
A
B
AB

Figure 3. An example for the construction in Lemma 4.2
Lemma 4.2. Given two Boolean matrices A and B of size and , one can construct in time an instance of the induced subgraph connected component problem on a 2n-node graph with a set of size , such that solving this instance yields the product AB.
Proof. Based on B, we construct the graph as follows (for an example, refer to Figure 3):
■ V contains 2n vertices, denoted by ; and
E contains edges such that the nodes are fully connected (i.e., they form a clique). Moreover, an edge exists if and only if .
Based on , we construct the family of sets as follows: for each row , we add a set to containing all nodes such that . We also add to all nodes in . That is, .
Note that by the construction of the clique, for each , there is a unique connected component in that contains all nodes in . We call this the giant component of . (Without loss of generality, we assume all are non-empty, otherwise the corresponding row is the zero vector and computing the product for that row is trivial.)
To infer the product AB, we make the following claim: if and only if the giant component of is non-empty and contains . The only if direction is straightforward: if there is a such that and , then and the edge . Therefore, is in the giant component. For the if direction, assume that is in the giant component. This is only possible if there is a such that , which is equivalent to . Since , we must also have . Thus, we have .
4.2 Recognizing AT-free Graphs in Matrix Multiplication Time
In this section, we present an -time algorithm for recognizing AT-free graphs. To achieve this, we first introduce a helpful relationship between neighborhood-deleted components that share the same vertices across different .
Proposition 4.3. Let be an undirected graph. Consider a vertex and two vertices such that and belong to distinct neighborhood-deleted components of , i.e., . The following conditions are equivalent:
(1) The neighborhood-deleted component containing a is identical in and , i.e., .
(2) The neighborhood contains the neighborhood of .
Proof. We first observe that always holds. Since , no vertex in is adjacent to ; thus, and all paths within remain intact in .
Suppose Condition (2) fails, i.e., there exists such that . Since is adjacent to and is not removed in , we have . However, (as ), which implies , so Condition (1) fails.
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
Conversely, assume Condition (2) holds. Every vertex is removed in because . Since any path from to the rest of the graph must pass through these boundary vertices in , their removal isolates in . Therefore, no additional vertices can be reached from in , yielding , so Condition (1) holds.
We now prove a quantitative lemma essential for characterizing AT-free graphs. Let denote the set of neighborhood-deleted components of . For any subset of components , this lemma establishes, for every , a lower bound on the number of pairs such that is a member of both and .
Lemma 4.4. Let be an AT-free graph. Let be the set of connected components in , and define .
For any subset , let , let denote the size of the largest component in , and let be the set of all vertices in belonging to components in . Then, for every such that is non-empty, we have:
Proof. Fix . We begin by defining an auxiliary undirected graph on the vertex set . An edge exists in if and only if , , and .
Claim 4.5. The graph is triangle-free; otherwise, G would contain an AT.
Proof. Suppose contains a triangle on vertices . We show these vertices form an AT in G. Since all edges exist in , we observe:
1 The vertices , and are pairwise non-adjacent. This is because from the existence of the edges in follows that , and belong to distinct connected components of .
2 There exists an -b path in that avoids . Since (as ), it suffices to show that there are -x and -x paths avoiding . By symmetry, we focus on the -x path.
Since , we have . By Proposition 4.3, there exists a vertex such that . Let be a neighbor of . An -x path avoiding is formed by concatenating a path from to within , the edge , and the edge .
By symmetry, and paths exist that avoid and , respectively. Thus, is an AT, contradicting that is AT-free.
By Mantel’s Theorem [Man07], the graph contains at most edges. This bound allows us to establish the following inequality.
Claim 4.6. The following inequality holds: .
Proof. Recall that . We first note that the number of (unordered) pairs , within the same component of is upper bounded by:
Let be the number of edges in . By the definition of , an edge is absent if and only if , , or , i.e., if is in either of these sets:
Mantel's Theorem states that a triangle-free graph on n vertices has at most edges.
Note that these two sets are indeed disjoint: if , then . In this case, cannot be a component in because the vertex itself is removed. Similar holds for in . This allows us to lower bound through the number of non-edges as:
Simplifying the latter inequality, combining it with , and rearranging, yields that . The claim follows by noticing that in each element of the latter set is counted at least once as or .
Finally, we establish the lower bound for . For any pair such that , the pair is a valid entry in the set . However, multiple vertices can belong to the same component . Specifically, for a fixed and , there are exactly vertices such that . Since for all , each pair is counted at most times in the set of pairs . Therefore, we have:
This brings us to our main structural result for AT-free graphs.
Theorem 4.7. Let be an AT-free graph. Moreover, let , and let be the set of all connected components of . Then there are at most distinct components across all ; that is, for .
Proof. Let . We begin by partitioning in sets, depending on the size of and in how many a component appears. More precisely, for , we set
Moreover, we introduce the auxiliary bipartite graph with vertices and an edge if . That is, is the neighborhood of in . The graph helps us to bound as follows.
Claim 4.8. For every , such that , we have .
Proof. Fix such , and let and denote the degree of and in , respectively.
For every , let and . If , we apply Lemma 4.4 to with and obtain
The number counts a subset of the walks of length two from vertex to some vertex through a component in the graph . Since every satisfies , for we have:
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
If , then and , so Equation (2) holds in this case as well. We can use this last inequality in the following chain of inequalities:
where we use:
Equation (3): By the definition of , we have for any .
Equation (4): The expression counts all length-two walks in whose endpoints lie in V and whose middle vertex lies in , while counts a subset of these walks.
Equation (5): Equation (2).
Equation (6): Cauchy–Schwarz inequality on a length- vector that contains in the entry indexed by and an all-one vector of the same length. We also use that .
Equation (7): By the definition of , we have for any .
The previous chain of inequalities yields immediately the claim:
Since partitions C, we conclude that:
as desired.
Finally, we can show how to determine in time whether a graph is AT-free by exploiting the structural result on AT-free graphs that we just established.
Main Theorem 2. There is a deterministic -time algorithm that determines if a graph is AT-free.
Proof. Given an input graph , our algorithm proceeds as follows:
(i) First, we apply Main Theorem 1 to identify the collection of all neighborhood-deleted components. Formally, let denote the set of connected components in . Then, .
(ii) Via Lemma 3.2, we assign each component a unique identifier , which allows us to count the number of distinct components in time. If , we terminate the process and report that is not AT-free.
(iii) Otherwise, for each distinct , we fix an arbitrary representative vertex such that . We then construct a triangle detection instance on a graph with vertices defined as follows:
☐ The vertex set of T is C.
For every non-edge , we add an edge between and in if and only if and .
Finally, we report that G is AT-free if and only if T is triangle-free.
Correctness. If the algorithm terminates in Step (ii), correctness follows directly from Theorem 4.7. If this is not the case, correctness follows from this claim.
Claim 4.9. G is AT-free if and only if T is triangle-free.
Proof. To prove the forward direction, suppose T contains a triangle with vertices . We claim that their representatives form an AT in G. Since , , and are edges in T, it follows by construction that , , and are non-edges in G. Furthermore, since and are edges in T, we must have . This implies the existence of an path in G that avoids the neighborhood . By symmetry, there exist and paths that avoid and , respectively.
Conversely, assume that is an AT in G. Let , , and . Note that if , then is an AT: the previously established argument for the forward direction applies conversely to show that forms a triangle in T.
Thus, it suffices to show that remains an AT in G. Note that must be distinct from , since are vertices in . If we can demonstrate that the property of being an AT is preserved when replacing with the corresponding representative , then by symmetry, replacing with ensures that is an AT. Applying this logic once more implies that is an AT, and thus we get the existence of the triangle in T.
Assume , as the case is trivial. Since and , we observe that ; otherwise, could not be a connected component in . Because , this immediately implies that is non-adjacent to both and .
Furthermore, since is a component in , there exists a -c path that avoids . To prove that is an AT, it remains to show that there exists a path avoiding and, by symmetry, a path avoiding . As is an AT, there already exists a path that avoids . Let be the neighbor of on . Without loss of generality, we can assume . We now consider two cases for the construction of the path:
1 If , we concatenate with the edge . Since , this path avoids .
2 If , we note that (otherwise would not be a component in ). By Proposition 4.3 applied to , , and any , it follows that every vertex must also be a neighbor of . In particular, . We can therefore construct a valid path by concatenating the subpath of (which avoids ) with the edge .
Runtime. Step (i) and Step (iii) take time . On the other hand, Step (ii) only takes time .
4.3 Listing Dominating Pairs in Matrix Multiplication Time
Main Theorem 3. There is a deterministic -time algorithm for listing all dominating pairs.
Proof. Let be an undirected graph.
We begin by observing that we may assume each contains at least one node. Indeed, if this were not the case, then . In such an instance, can be removed from because it is already known that is adjacent to every vertex (and path) in . Moreover, in this case we know that constitutes a dominating pair for all .
Now, for each pair of distinct nodes , we must determine whether constitutes a dominating pair. To this end, we observe that is a dominating pair if and only if for each node , we have . This condition follows because indicates that there is no path that avoids the neighborhood of . Conversely, for any node , every path trivially intersects the closed neighborhood of , as either or lies in ; and for any node , if we have , then any path must intersect .
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
Our algorithm. Our algorithm, rather than listing all dominating pairs, will list all non-dominating pairs, by trying to find for each a witness node such that . Specifically, the algorithm proceeds as follows:
(i) First, we use Main Theorem 1 to find all neighborhood-deleted components. For each , let be the connected components in and set . Similarly to Main Theorem 2, we use Lemma 3.2, to compute the count of the number of times each connected component appears across the graphs .
(ii) For each , let denote the largest connected component in , i.e., . If multiple components share the same maximum size, we fix one arbitrarily. We then construct a Boolean matrix , indexed by the vertices in , defined as follows:
By computing the BMM product , we identify and mark as non-dominating all pairs for which . That is we mark all pairs that are witnessed by a component in .
(iii) Next, for each , we do the following. We let be the node with that minimizes the number of nodes in , i.e.,
If appears in less than graphs , i.e., if , we do nothing. Otherwise, if we iterate over all pairs of nodes and mark them as non-dominating pairs.
(iv) Return as dominating pairs all pairs u, v that have not been marked as non-dominating in either Step (ii) or Step (iii).
Correctness. We show that for each non-dominating pair u, v, we identify at least one witness w and mark u, v as non-dominating, either in Step (ii) or in Step (iii).
To this end fix a non-dominating pair . For each witness of , let be the component containing both vertices. Choose among these witnesses to maximize , and set . We begin by observing that if . Consequently, if , the pair is marked as non-dominating in Step (ii) and we may henceforth assume that .
The following claim establishes that u, v is marked in Step (iii).
Claim 4.10. The number of such that is at least , i.e., . In particular, because we have that is marked as a non-dominating pair in Step (iii).
Proof. Given our assumption that , we know that (otherwise, C would be ). Consequently, the number of nodes in that are not contained in C is at least
To conclude, it suffices to show that for each we have .
To this end, let be an arbitrary node with . Since , we have that . Because of this, each pair of nodes in remains connected in . This implies that witnesses and satisfies . However, by our choice of , we must have that , which means that . We conclude that , as desired.

Figure 4. Criterion for two vertices to form a two-pair
Runtime. Clearly, Step (i) and Step (ii) run in time .
On the other hand, in Step (iii), we first find for each and verify whether to list all witnessed pairs in . It is not difficult to see that this can be implemented in time . Let be the set of all for which we list all pairs . For each we spend time . Over all elements this becomes:
(double counting argument)
which concludes the proof.
4.4 Listing Two-Pairs in Matrix Multiplication Time
We begin with the observation by Arikati and Pandu Rangan [AR91], which characterizes two-pairs based on neighborhood-deleted components. For the sake of completeness, we also include a proof of it.
Proposition 4.11 (Lemma 2 of [AR91]). Let be a graph. Then, for any two distinct non-neighboring vertices the following holds: is a two-pair if and only if .
Proof. Let us abbreviate . By definition of , we always have that and .
Suppose first that , or equivalently that . Let be any vertex in . Consider a shortest path from to in . Then, extending the path with the edge gives a chordless path from to , which has length at least three, as illustrated in Figure 4. Thus, are not a two-pair.
Conversely, suppose that are not a two-pair, which means that there is a chordless path of length at least three between and . Then, the neighbor of on this path is in but not in . Thus, we have that .
In other words, a two-pair is characterized by the property that the entire out-neighborhood of (which must be a subset of ) coincides exactly with the neighbors of outside of (which must also be a subset of ). This allows us to give the following algorithm to list all two-pairs in matrix multiplication time.
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
Main Theorem 4. There is a deterministic -time algorithm for listing all two-pairs.
Proof. Let be an undirected graph.
Our algorithm. We proceed as follows:
(i) We first precompute several quantities. Using Main Theorem 1, we find all neighborhood-deleted components. Furthermore, via matrix multiplication, we compute for each pair of vertices the number of common neighbors and the size of their set difference . We also set up the fingerprints of Lemma 3.2.
(ii) Next, for each node , we consider and the set of connected components within it. For each , we iterate over all nodes to compute the set , which consists of all nodes in that maximize the number of common neighbors with in . From each set , we also select an arbitrary representative node . Among all nodes , we restrict our testing to whether and the representative form a two-pair. By Proposition 4.11, any node in that does not maximize the number of common neighbors with in cannot form a two-pair with . Furthermore, it is easy to observe that either all nodes in form a two-pair with , or none of them do.
(iii) For each node and each , we iterate over all nodes in time. If there exists a node satisfying , we mark and as not a two-pair.
(iv) For each node and each , we again iterate over all nodes to compute the following quantity:
If , we mark and as not a two-pair.
(v) Finally, for each node , we list all nodes that form a two-pair with . Specifically, for each , if and have not been marked as not a two-pair, we report all nodes as forming a two-pair with .
Correctness. Let and be arbitrary. Moreover, abbreviate . As elaborated earlier, it suffices to show that and are not marked if and only if and are a two-pair.
We first observe that and are not a two-pair if and only if there is that satisfies . We first prove that and are marked in Step (iii) if and only if there is with .
Claim 4.12. There is a node with if and only if there is a node with .
Proof. First, suppose there exists a node such that . Consider an arbitrary path from to in . Let be the first node on that is not in , and let be its immediate predecessor on the path. Note that any neighbor of that is not in must belong to ; therefore, . Therefore, and .
Conversely, observe that , , and immediately imply that and are connected by a path of length two in . Thus, .
It remains to prove that if there is no with , then if and only if and are not a two-pair.
Claim 4.13. If there is no with , then . In particular, if and only if there is with .
Proof. We proceed by rewriting each of the three terms in Equation (8). For the first term, we use the fact that if for every , then:
For the second and third terms, basic set rewriting yields:
Summing and subtracting the terms as they appear in the definition of , we get that the right-hand side simplifies to our target expression, , since , and provided that Term ( ) and Term ( ) are equal. To verify this equality, we note that:
□ Term (‡) counts all pairs such that , , and .
□ Term (†) counts all pairs such that , , and .
Because every neighbor of is either in or in , the condition is equivalent to . Moreover, for any node where , we have if and only if . Thus, we have that Term (†) and Term (‡) are indeed equal.
Runtime. Step (i) takes time . All other steps take time .
4.5 Recognizing Quasi-Triangulated Graphs Faster
As explained in Section 2, it suffices to give an algorithm for the incremental simplicial vertex problem, where each update corresponds to a vertex deletion and we need to maintain whether there is a simplicial vertex in the graph. In the following theorem, we present an algorithm that solves this problem in subcubic (amortized) time.
Theorem 4.14. There is an algorithm for Decremental Simplicial Vertex that on an n-node graph runs in time
In particular, with the current bounds on rectangular matrix multiplication this gives a running time of on dense graphs. For sparse graphs, bounding the rectangular product naively by dividing it into blocks yields a running time of .
Proof. Let be a parameter. First, we set up some notation and make some remarks:
- For , let the -th time step be the point in time before the -th removal (zero-indexed) in the overall process. Further partition the time steps into phases of size at most . Let denote the time steps in the -th phase, where and .
Let be the graph at the -th time step (in particular is the input graph), write for and for , and let and denote the adjacency matrix of and the complement of , respectively. Note that during the entire process it is easy to maintain and the neighborhood of the vertices in total time .
The algorithm maintains a count for each vertex , defined as the number of induced 's where is the middle vertex. Formally, is the number of missing edges in the neighborhood of . Clearly, if and only if is a simplicial vertex in . This means that for each query, it suffices to return any node for which , or report that no such node exists.
We used the bounds from [ADV 25] plugged into van den Brand's optimization tool [Bra].
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
Our Algorithm. To maintain the values up to date, suppose we just removed a vertex, and we need to compute for time step i. Then:
(i) If , i.e., we are at the start of phase , then we compute
where the values for all pairs of vertices are computed as follows:
□ If (and so ), we compute these values via the product .
□ Otherwise, if , let be the set of vertices removed during the -th phase. We obtain from by computing
We observe that we can compute the second term simultaneously for all by multiplying the adjacency matrix between and with the non-adjacency matrix between and , whose entry for is 1 exactly when .
(ii) Otherwise, if (we are not at the beginning of the phase), let be the vertex removed from to form . For each , we set
where we compute
Here, is the set of vertices removed so far in the current phase. We compute the intersection by iterating over all nodes in in time .
Correctness. The correctness relies on maintaining the exact number of missing edges in each vertex's neighborhood, and should be obvious to see.
Runtime. Over the entire algorithm, we perform phase initializations. The first initialization takes time to compute . Each subsequent phase initialization computes the rectangular matrix product of an matrix and a matrix. Since , this takes time per phase, requiring a total time of . (Also note that for every , so the latter term dominates the former.)
The updates within the phases take time for each neighbor of the removed vertex. Over all removals, the sum of the degrees of the removed vertices is bounded by . This yields a total intra-phase update time of .
4.6 Lower Bound for Finding uv-trails
We show that verifying whether a graph G contains a uv-trail with , even for a single fixed pair of vertices , cannot be performed faster than the time required to detect whether a graph contains a triangle. This is in stark contrast with the case , where we can solve the same problem in time . We start by proving the following for the case .
Lemma 4.15. Let G be an n-node graph. Then, in time , we can build a -node graph H containing two designated vertices u and v such that both of the following hold:
(i)
(ii) H contains a uv-trail if and only if G contains a triangle.

Figure 5. An example of the graph H used in Lemma 4.15.
Proof. Let . First, we transform into a tripartite graph on 3n nodes by creating three disjoint copies of the vertex set, denoted A, B, and C, while retaining only those edges that connect vertices in different partitions. It is not difficult to see that the resulting tripartite graph contains a triangle if and only if the original graph contained a triangle.
Therefore, assume that is a tripartite graph with vertex partitions , , and . We construct as follows (see Figure 5):
■ The vertex set is , where , and are auxiliary vertices.
The edge set includes all original edges between and and between and . However, it contains the complement of the edges between and ; that is, .
■ Additionally, contains a path of length three connecting and .
■ Finally, contains edges and for all .
We observe that (i) holds. This is because the path has length three, and because and are disjoint, so there is no path of length one or two.
It remains to show that H contains a uv-trail if and only if G contains a triangle. First, assume G contains a triangle on vertices . We claim that is a uv-trail. To see this, notice that this path has length four and is chordless because and have no neighbors in and , respectively, and is not an edge in H because it was an edge in G.
On the other hand, assume there exists a uv-trail in H. We observe that cannot utilize any nodes in . Furthermore, can contain at most one vertex from each set A and B. If were to contain two distinct vertices in that order, the edge would constitute a chord; a similar argument holds for nodes in B. Thus, must follow the sequence: , followed by some , then vertices in C, then some , and finally . Since there are no edges between vertices within C, we have for some . Because is chordless and hence , it follows that G contains the triangle .
This yields the following result.
Lemma 4.16. For any , suppose there exists an algorithm that, in time , determines whether an n-node graph contains a uv-trail for two vertices with . Then there is an algorithm solving triangle detection in time .
Proof. For k = 3, we can use the construction from Lemma 4.15: given an input graph for triangle detection, the graph H is constructed and then the uv-trail detection algorithm from the problem statement is used.
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
For , we note that the graph H can still be constructed following Lemma 4.15. In this case, however, we augment H by adding a path of length connecting a new auxiliary node to . We then verify the existence of a -v-trail. This construction remains valid because any trail from to must necessarily pass through , and the appended path segment is chordless.
Acknowledgments
OpenAI Codex was used to assist with revisions to the technical exposition, the layout of the figures, and the LaTeX formatting of this version. The authors are responsible for the final content.
Bibliography
ACIM99 Donald Aingworth, Chandra Chekuri, Piotr Indyk, and Rajeev Motwani. Fast estimation of diameter and shortest paths (without matrix multiplication). SIAM J. Comput., 28(4):1167–1181, 1999. 3
ADV 25 Josh Alman, Ran Duan, Virginia Vassilevska Williams, Yinzhan Xu, Zixuan Xu, and Renfei Zhou. More asymmetry yields faster matrix multiplication. In Yossi Azar and Debmalya Panigrahi, editors, Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2025, New Orleans, LA, USA, January 12-15, 2025, pages 2005–2039. SIAM, 2025. doi:10.1137/1.9781611978322.63.6, 21
AFJ 25 Amir Abboud, Nick Fischer, Ce Jin, Virginia Vassilevska Williams, and Zoe Xi. All-pairs shortest paths with few weights per node. In Michal Koucký and Nikhil Bansal, editors, Proceedings of the 57th Annual ACM Symposium on Theory of Computing, STOC 2025, Prague, Czechia, June 23-27, 2025, pages 1956–1964. ACM, 2025. doi:10.1145/3717823.3718240.2
AGMN92 Noga Alon, Zvi Galil, Oded Margalit, and Moni Naor. Witnesses for Boolean matrix multiplication and for shortest paths. In 33rd Annual Symposium on Foundations of Computer Science, Pittsburgh, Pennsylvania, USA, October 24-27, 1992, pages 417–426. IEEE Computer Society, 1992. 2
Aku99 Tatsuya Akutsu. Approximation and exact algorithms for RNA secondary structure prediction and recognition of stochastic context-free languages. J. Comb. Optim., 3:321–336, 1999. 2
AN96 Noga Alon and Moni Naor. Derandomization, witnesses for Boolean matrix multiplication and construction of perfect hash functions. Algorithmica, 16(4/5):434–449, 1996. doi:10.1007/BF01940874.11
AP72 Alfred V. Aho and Thomas G Peterson. A minimum distance error-correcting parser for context-free languages. SIAM J. Comput., 1(4):305–312, 1972. 2
AR91 Srinivasa Rao Arikati and C. Pandu Rangan. An efficient algorithm for finding a two-pair, and its applications. Discret. Appl. Math., 31(1):71–74, 1991. doi:10.1016/0166-218X(91)90033-S. 19
AV14 Amir Abboud and Virginia Vassilevska Williams. Popular conjectures imply strong lower bounds for dynamic problems. In 55th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2014), pages 434–443. IEEE Computer Society, 2014. 3
AYZ97 Noga Alon, Raphael Yuster, and Uri Zwick. Finding and counting given length cycles. Algorithmica, 17(3):209–223, 1997. doi:10.1007/BF02523189.8
BBF 26 Aaron Bernstein, Sayan Bhattacharya, Nick Fischer, Peter Kiss, and Thatchaphol Saranurak. Separations between oblivious and adaptive adversaries for natural dynamic graph problems. In Kasper Green Larsen and Barna Saha, editors, Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026, Vancouver, BC, Canada, January 11-14, 2026, pages 5669–5687. SIAM, 2026. doi:10.1137/1.9781611978971.202.6
Ber60 Claude Berge. Les problèmes de coloration en théorie des graphes. Annales de l'ISUP, IX(2):123–160, 1960. URL: https://hal.science/hal-04092789.29
Ber61 Claude Berge. Färbung von Graphen, deren sämtliche bzw. deren ungerade Kreise starr sind. Wissenschaftliche Zeitschrift, 1961. 29
BGSV19 Karl Bringmann, Fabrizio Grandoni, Barna Saha, and Virginia Vassilevska Williams. Truly subcubic algorithms for language edit distance and RNA folding via fast bounded-difference min-plus product. SIAM J. Comput., 48(2):481–512, 2019. 1, 2
BKKM99 Hajo Broersma, Ton Kloks, Dieter Kratsch, and Haiko Müller. Independent sets in asteroidal triple-free graphs. SIAM J. Discret. Math., 12(2):276–287, 1999. doi:10.1137/S0895480197326346.29
BKPR19 Hodaya Barr, Tsvi Kopelowitz, Ely Porat, and Liam Roditty. -APSP and (min, max)-product problems. CoRR, abs/1911.06132, 2019. URL: http://arxiv.org/abs/1911.06132, arXiv:1911.06132. 2
BKS18 Markus Bläser, Balagopal Komarath, and Karteek Sreenivasaiah. Graph pattern polynomials. In Sumit Ganguly and Paritosh K. Pandya, editors, 38th IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science, FSTTCS 2018, Ahmedabad, India, December 11-13, 2018, volume 122 of LIPIcs, pages 18:1–18:13. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2018. URL: https://doi.org/10.4230/LIPIcs.FSTTCS.2018.18, doi:10.4230/LIPICS.FSTTCS.2018.18.6
Bra Jan van den Brand. Complexity term balancer. www.ocf.berkeley.edu/~vdbrand/complexity/. Tool to balance complexity terms depending on fast matrix multiplication. 6, 21
BSS21 Eli Berger, Paul D. Seymour, and Sophie Spirkl. Finding an induced path that is not a shortest path. Discret. Math., 344(7):112398, 2021. URL: https://doi.org/10.1016/j.disc.2021.112398, doi:10.1016/J.DISC.2021.112398.5
CD18 David Coudert and Guillaume Ducoffe. Revisiting decomposition by clique separators. SIAM J. Discret. Math., 32(1):682–694, 2018. doi:10.1137/16M1059837.4
CDXZ22 Shucheng Chi, Ran Duan, Tianle Xie, and Tianyi Zhang. Faster min-plus product for monotone instances. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing (STOC), pages 1529–1542, 2022. 2
Cha10 Timothy M. Chan. More algorithms for all-pairs shortest paths in weighted graphs. SIAM J. Comput., 39(5):2075–2089, 2010. doi:10.1137/08071990X.2
CHP 24 Linda Cook, Jake Horsfield, Myriam Preissmann, Cléophée Robin, Paul D. Seymour, Ni Luh Dewi Sintiari, Nicolas Trotignon, and Kristina Vuskovic. Graphs with all holes the same length. J. Comb. Theory B, 168:96–158, 2024. URL: https://doi.org/10.1016/j.jctb.2024.04.006, doi:10.1016/J.JCTB.2024.04.006.6
Chv85 V Chvátal. Star-cutsets and perfect graphs. Journal of Combinatorial Theory, Series B, 39(3):189–199, 1985. URL: https://www.sciencedirect.com/science/article/pii/0095895685900498, doi:10.1016/0095-8956(85)90049-8.29
CKL07 Artur Czumaj, Miroslav Kowaluk, and Andrzej Lingas. Faster algorithms for finding lowest common ancestors in directed acyclic graphs. Theor. Comput. Sci., 380(1-2):37–46, 2007. URL: https://doi.org/10.1016/j.tcs.2007.02.053, doi:10.1016/J.TCS.2007.02.053.6
CKS05 Maria Chudnovsky, Ken-ichi Kawarabayashi, and Paul D. Seymour. Detecting even holes. J. Graph Theory, 48(2):85–111, 2005. URL: https://doi.org/10.1002/jgt.20040, doi:10.1002/JGT.20040.10
CL15 Hsien-Chih Chang and Hsueh-I Lu. A faster algorithm to recognize even-hole-free graphs. Journal of Combinatorial Theory, Series B, 113:141–161, 2015. doi:10.1016/j.jctb.2015.02.001.10
CL24 Yung-Chung Chiu and Hsueh-I Lu. Blazing a trail via matrix multiplications: A faster algorithm for non-shortest induced paths. Inf. Comput., 301(PA), December 2024. URL: https://doi.org/10.1016/j.ic.2024.105227.5, 6
CLL22 Yung-Chung Chiu, Kai-Yuan Lai, and Hsueh-I Lu. Improved algorithms for recognizing perfect graphs and finding shortest odd and even holes, 2022. URL: https://arxiv.org/abs/2207.07613, arXiv:2207.07613.10
CLV03 Gérard Cornuéjols, Xinming Liu, and Kristina Vuskovic. A polynomial algorithm for recognizing perfect graphs. In 44th Symposium on Foundations of Computer Science, FOCS 2003, Cambridge, MA, USA, October 11-14, 2003, Proceedings, pages 20–27. IEEE Computer Society, 2003. doi:10.1109/SFCS.2003.1238177.10
COS97 Derek G. Corneil, Stephan Olariu, and Lorna Stewart. Asteroidal triple-free graphs. SIAM J. Discret. Math., 10(3):399–430, 1997. doi:10.1137/S0895480193250125. 10, 29
COS99 Derek G. Corneil, Stephan Olariu, and Lorna Stewart. Linear time algorithms for dominating pairs in asteroidal triple-free graphs. SIAM J. Comput., 28(4):1284–1297, 1999. doi:10.1137/S0097539795282377.10
CR93 Vasek Chvátal and Irena Rusu. A note on graphs with no holes, 1993. Presented at the DIMACS workshop of perfect graphs. 29
CRS02 Vasek Chvátal, Irena Rusu, and R. Sritharan. Dirac-type characterizations of graphs without long chordless cycles. Discret. Math., 256(1-2):445–448, 2002. doi:10.1016/S0012-365X(01)00166-2.29
CRST06 Maria Chudnovsky, Neil Robertson, Paul Seymour, and Robin Thomas. The strong perfect graph theorem. Annals of Mathematics, 164(1):51–229, 2006. doi:10.4007/annals.2006.164.51.29
CSSS20 Maria Chudnovsky, Alex Scott, Paul D. Seymour, and Sophie Spirkl. Detecting an odd hole. J. ACM, 67(1):5:1–5:12, 2020. doi:10.1145/3375720.10
CVX21 Timothy M. Chan, Virginia Vassilevska Williams, and Yinzhan Xu. Algorithms, reductions and equivalences for small weight variants of all-pairs shortest paths. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, Glasgow, Scotland (Virtual Conference), July 12-16, 2021, volume 198 of LIPIcs, pages 47:1–47:21. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021. URL: https://doi.org/10.4230/LIPIcs.ICALP.2021.47, doi:10.4230/LIPICS.ICALP.2021.47.2
DDHV25 Feodor Dragan, Guillaume Ducoffe, Michel Habib, and Laurent Viennot. Certificates in P and Subquadratic-Time Computation of Radius, Diameter, and all Eccentricities in Graphs, pages 2157–2193. 2025. URL: https://epubs.siam.org/doi/abs/10.1137/1.9781611978322.70, arXiv:https://epubs.siam.org/doi/pdf/10.1137/1.9781611978322.70, doi:10.1137/1.9781611978322.70.29
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
DEK 26 Emilien Dupont, Marvin Eisenberger, Borislav Kozlovskii, Abbas Mehrabian, Francisco J. R. Ruiz, Abigail See, Renfei Zhou, Josh Alman, Virginia Vassilevska Williams, and Matej Balog. Improving the matrix multiplication exponent with modern optimization and AlphaEvolve, 2026. URL: https://arxiv.org/abs/2608.16884, arXiv:2608.16884.1
DGZ18 Ran Duan, Yong Gu, and Le Zhang. Improved time bounds for all pairs non-decreasing paths in general digraphs. In Ioannis Chatzigiannakis, Christos Kaklamanis, Dániel Marx, and Donald Sannella, editors, 45th International Colloquium on Automata, Languages, and Programming, ICALP 2018, Prague, Czech Republic, July 9-13, 2018, volume 107 of LIPIcs, pages 44:1–44:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2018. URL: https://doi.org/10.4230/LIPIcs.ICALP.2018.44, doi:10.4230/LIPICS.ICALP.2018.44.2
Dir61 G. A. Dirac. On rigid circuit graphs. Abhandlungen aus dem Mathematischen Seminar der Universität Hamburg, 25:71–76, 1961. 29
DJVW22 Mina Dalirrooyfard, Ce Jin, Virginia Vassilevska Williams, and Nicole Wein. Approximation algorithms and hardness for n-pairs shortest paths and all-nodes shortest cycles. In 63rd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2022, Denver, CO, USA, October 31 - November 3, 2022, pages 290–300. IEEE, 2022. doi:10.1109/FOCS54457.2022.00034.3
DJW19 Ran Duan, Ce Jin, and Hongxun Wu. Faster algorithms for all pairs non-decreasing paths problem. In Christel Baier, Ioannis Chatzigiannakis, Paola Flocchini, and Stefano Leonardi, editors, 46th International Colloquium on Automata, Languages, and Programming, ICALP 2019, Patras, Greece, July 9-12, 2019, volume 132 of LIPIcs, pages 48:1–48:13. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2019. URL: https://doi.org/10.4230/LIPIcs.ICALP.2019.48, doi:10.4230/LIPICS.ICALP.2019.48.2
DK21 Mina Dalirrooyfard and Jenny Kaufmann. Approximation algorithms for min-distance problems in DAGs. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, Glasgow, Scotland (Virtual Conference), July 12-16, 2021, volume 198 of LIPIcs, pages 60:1–60:17. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021. 3
DKS22 Debarati Das, Tomasz Kociumaka, and Barna Saha. Improved approximation algorithms for dyck edit distance and RNA folding. In Proceedings of the 49th International Colloquium on Automata, Languages, and Programming (ICALP), pages 49:1–49:20, 2022. URL: https://doi.org/10.4230/LIPIcs.ICALP.2022.49, doi:10.4230/LIPICS.ICALP.2022.49.2
DP09 Ran Duan and Seth Pettie. Fast algorithms for (max, min)-matrix multiplication and bottleneck shortest paths. In Claire Mathieu, editor, Proceedings of the Twentieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2009, New York, NY, USA, January 4-6, 2009, pages 384–391. SIAM, 2009. doi:10.1137/1.9781611973068.43.2
Duc22 Guillaume Ducoffe. The diameter of AT-free graphs. Journal of Graph Theory, 99(4):594–614, 2022. URL: https://onlinelibrary.wiley.com/doi/abs/10.1002/jgt.22754, arXiv:https://onlinelibrary.wiley.com/doi/pdf/10.1002/jgt.22754, doi:10.1002/jgt.22754.29
Dür23 Anita Dürr. Improved bounds for rectangular monotone min-plus product and applications. Inf. Process. Lett., 181:106358, 2023. URL: https://doi.org/10.1016/j.ipl.2023.106358, doi:10.1016/J.IPL.2023.106358.2
DV22 Mina Dalirrooyfard and Virginia Vassilevska Williams. Induced cycles and paths are harder than you think. In 63rd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2022, Denver, CO, USA, October 31 - November 3, 2022, pages 531–542. IEEE, 2022. doi:10.1109/FOCS54457.2022.00057.6
DVV21 Mina Dalirrooyfard, Thuy-Duong Vuong, and Virginia Vassilevska Williams. Graph pattern detection: Hardness for all induced patterns and faster noninduced cycles. SIAM J. Comput., 50(5):1627–1662, 2021. doi:10.1137/20M1335054.6
ES95 Elaine M. Eschen and R. Sritharan. A characterization of some graph classes with no long holes. J. Comb. Theory B, 65(1):156–162, 1995. URL: https://doi.org/10.1006/jctb.1995.1048, doi:10.1006/JCTB.1995.1048.29
FGK 24 Dvir Fried, Shay Golan, Tomasz Kociumaka, Tsvi Kopelowitz, Ely Porat, and Tatiana Starikovskaya. An improved algorithm for the k-Dyck edit distance problem. ACM Trans. Algorithms, 20(3):1–25, 2024. 2
Fis26 Nick Fischer. Universe reduction for APSP: equivalence of three fine-grained hypotheses. In Aditya Bhaskara and Artur Czumaj, editors, Proceedings of the 58th Annual ACM Symposium on Theory of Computing, STOC 2026, Salt Lake City, UT, USA, June 22-26, 2026, pages 922–932. ACM, 2026. doi:10.1145/3798129.3800806.2
FKLL12 Peter Floderus, Miroslaw Kowaluk, Andrzej Lingas, and Eva-Marta Lundell. Induced subgraph isomorphism: Are some patterns substantially easier than others? In Joachim Gudmundsson, Julián Mestre, and Taso Viglas, editors, Computing and Combinatorics - 18th Annual International Conference, COCOON 2012, Sydney, Australia, August 20-22, 2012. Proceedings, volume 7434 of Lecture Notes in Computer Science, pages 37–48. Springer, 2012. doi:10.1007/978-3-642-32241-9_4.6
Gal67 Tibor Gallai. Transitiv orientierbare Graphen. Acta Mathematica Academiae Scientiarum Hungarica, 18:25–66, 1967. 8, 29
Gav72 Fănică Gavril. Algorithms for minimum coloring, maximum clique, minimum covering by cliques, and maximum independent set of a chordal graph. SIAM Journal on Computing, 1(2):180–187, 1972. arXiv:https://doi.org/10.1137/0201013, doi:10.1137/0201013.29
GKL09 Leszek Gasieniec, Miroslaw Kowaluk, and Andrzej Lingas. Faster multi-witnesses for Boolean matrix multiplication. Inf. Process. Lett., 109(4):242–247, 2009. 2
GMT84 Martin Charles Golumbic, Clyde L. Monma, and William T. Trotter. Tolerance graphs. Discret. Appl. Math., 9(2):157–170, 1984. doi:10.1016/0166-218X(84)90016-7.29
GPVX21 Yuzhou Gu, Adam Polak, Virginia Vassilevska Williams, and Yinzhan Xu. Faster monotone min-plus product, range mode, and single source replacement paths. In Proceedings of the 48th International Colloquium on Automata, Languages, and Programming (ICALP), pages 75:1–75:20, 2021. URL: https://doi.org/10.4230/LIPIcs.ICALP.2021.75, doi:10.4230/LIPICS.ICALP.2021.75.2
Hay85 Ryan B. Hayward. Weakly triangulated graphs. J. Comb. Theory B, 39(3):200–208, 1985. doi:10.1016/0095-8956(85)90050-4. 29
HHM90 Ryan Hayward, Chinh T. Hoàng, and Frédéric Maffray. Optimizing weakly triangulated graphs. Graphs Comb., 6(1):33–35, 1990. doi:10.1007/BF01787477.29
HK02 Harald Hempel and Dieter Kratsch. On claw-free asteroidal triple-free graphs. Discrete Applied Mathematics, 121(1):155–180, 2002. doi:10.1016/S0166-218X(01)00208-6.5
Hoà03 Chinh T. Hoàng. Recognizing quasi-triangulated graphs in O(nm) time, 2003. 6
HSS07 Ryan B. Hayward, Jeremy P. Spinrad, and R. Sritharan. Improved algorithms for weakly chordal graphs. ACM Trans. Algorithms, 3(2):14, 2007. doi:10.1145/1240233.1240237.29
HTV05 Pinar Heggernes, Jan Arne Telle, and Yngve Villanger. Computing minimal triangulations in time . SIAM Journal on Discrete Mathematics, 19(4):900–913, 2005. arXiv:https://doi.org/10.1137/S0895480104445010, doi:10.1137/S0895480104445010.4
KM12 Dieter Kratsch and Haiko Müller. Colouring AT-free graphs. In Leah Epstein and Paolo Ferragina, editors, Algorithms - ESA 2012 - 20th Annual European Symposium, Ljubljana, Slovenia, September 10-12, 2012. Proceedings, Lecture Notes in Computer Science, pages 707–718. Springer, 2012. doi:10.1007/978-3-642-33090-2_61.29
KMT08 Dieter Kratsch, Haiko Müller, and Ioan Todinca. Feedback vertex set on AT-free graphs. Discret. Appl. Math., 156(10):1936–1947, 2008. URL: https://doi.org/10.1016/j.dam.2007.10.006, doi:10.1016/J.DAM.2007.10.006.29
Kra00 Dieter Kratsch. Domination and total domination on asteroidal triple-free graphs. Discret. Appl. Math., 99(1-3):111–123, 2000. doi:10.1016/S0166-218X(99)00128-6.29
KS06 Dieter Kratsch and Jeremy P. Spinrad. Between and . SIAM J. Comput., 36(2):310–325, 2006. doi:10.1137/S0097539704441435. 2, 3, 4, 5, 10
Kö04 Ekkehard Köhler. Recognizing graphs without asteroidal triples. Journal of Discrete Algorithms, 2(4):439–452, 2004. The 26th International Workshop on Graph-Theoretic Concepts in Computer Science (WG 2000). doi:10.1016/j.jda.2004.04.005.8
LB62 Cornelis Gerrit Lekkeikerker and Johan Christoph Boland. Representation of a finite graph by a set of intervals on the real line. Fundamenta Mathematicae, 51(1):45–64, 1962. URL: http://eudml.org/doc/213681. 8, 29
LB79 George S. Lueker and Kellogg S. Booth. A linear time algorithm for deciding interval graph isomorphism. J. ACM, 26(2):183–195, 1979. doi:10.1145/322123.322125.29
LPV20 Andrea Lincoln, Adam Polak, and Virginia Vassilevska Williams. Monochromatic triangles, intermediate matrix products, and convolutions. In Thomas Vidick, editor, 11th Innovations in Theoretical Computer Science Conference, ITCS 2020, Seattle, Washington, USA, January 12-14, 2020, volume 151 of LIPIcs, pages 53:1–53:18. Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2020. URL: https://doi.org/10.4230/LIPIcs.ITCS.2020.53, doi:10.4230/LIPICS.ITCS.2020.53.2
Man07 Willem Mantel. Problem 28. Wiskundige Opgaven, 10:60–61, 1907. 14
Mao21 Xiao Mao. Breaking the cubic barrier for (unweighted) tree edit distance. In 62nd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2021, Denver, CO, USA, February 7-10, 2022, pages 792–803. IEEE, 2021. doi:10.1109/FOCS52979.2021.00082.2
Mat91 Jiri Matousek. Computing dominances in e^n. Inf. Process. Lett., 38(5):277–278, 1991. doi:10.1016/0020-0190(91)90071-0.2
NJ80 Ruth Nussinov and Ann B. Jacobson. Fast algorithm for predicting the secondary structure of single-stranded RNA. Proc. Natl. Acad. Sci. U.S.A., 77(11):6309–6313, 1980. 2
NPS 25 Jakob Nogler, Adam Polak, Barna Saha, Virginia Vassilevska Williams, Yinzhan Xu, and Christopher Ye. Faster weighted and unweighted tree edit distance and APSP equivalence. In Michal Koucký and Nikhil Bansal, editors, Proceedings of the 57th Annual ACM Symposium on Theory of Computing, STOC 2025, Prague, Czechia, June 23-27, 2025, pages 2167–2178. ACM, 2025. doi:10.1145/3717823.3718116.2
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
Ree87 Bruce A. Reed. A semi-strong perfect graph theorem. J. Comb. Theory B, 43(2):223–240, 1987. doi:10.1016/0095-8956(87)90022-0. 29
RS03 Vijay Raghavan and Jeremy P. Spinrad. Robust algorithms for restricted domains. J. Algorithms, 48(1):160–172, 2003. doi:10.1016/S0196-6774(03)00048-8. 10
RTL76 Donald J. Rose, Robert Endre Tarjan, and George S. Lueker. Algorithmic aspects of vertex elimination on graphs. SIAM J. Comput., 5(2):266–283, 1976. doi:10.1137/0205021. 6, 29
RV13 Liam Roditty and Virginia Vassilevska Williams. Fast approximation algorithms for the diameter and radius of sparse graphs. In Symposium on Theory of Computing Conference, STOC'13, Palo Alto, CA, USA, June 1-4, 2013, pages 515–524. ACM, 2013. 3
Sah14 Barna Saha. The Dyck language edit distance problem in near-linear time. In Proceedings of the 2014 IEEE 55th Annual Symposium on Foundations of Computer Science (FOCS), pages 611–620, 2014. 2
Sah17 Barna Saha. Fast & space-efficient approximations of language edit distance and RNA folding: An amnesic dynamic programming approach. In Proceedings of the 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS), pages 295–306. IEEE, 2017. 2
Sei95 Raimund Seidel. On the all-pairs-shortest-path problem in unweighted undirected graphs. J. Comput. Syst. Sci., 51(3):400–403, 1995. 1
Spi04 Jeremy P. Spinrad. Recognizing quasi-triangulated graphs. Discret. Appl. Math., 138(1-2):203–213, 2004. doi:10.1016/S0166-218X(03)00295-6. 6
Sta12 Juraj Stacho. 3-colouring AT-free graphs in polynomial time. Algorithmica, 64(3):384–399, 2012. URL: https://doi.org/10.1007/s00453-012-9624-8, doi:10.1007/S00453-012-9624-8. 29
Str69 Volker Strassen. Gaussian elimination is not optimal. Numer. Math., 13:354–356, 1969. URL: http://eudml.org/doc/131927.1
Tar75 Robert Endre Tarjan. Efficiency of a good but not linear set union algorithm. J. ACM, 22(2):215–225, April 1975. doi:10.1145/321879.321884. 12
Vas10 Virginia Vassilevska Williams. Nondecreasing paths in a weighted graph or: How to optimally read a train schedule. ACM Trans. Algorithms, 6(4):70:1–70:24, 2010. doi:10.1145/1824777.1824790. 2
Vas18 Virginia Vassilevska Williams. On some fine-grained questions in algorithms and complexity. In Proceedings of the International Congress of Mathematicians (ICM 2018), pages 3447–3487, 2018. doi:10.1142/9789813272880_0188. 1, 3
VGF14 Balaji Venkatachalam, Dan Gusfield, and Yelena Frid. Faster algorithms for RNA-folding using the Four-Russians method. Algorithms Mol. Biol., 9:1–12, 2014. 2
VW18 Virginia Vassilevska Williams and R. Ryan Williams. Subcubic equivalences between path, matrix, and triangle problems. J. ACM, 65(5):27:1–27:38, 2018. doi:10.1145/3186893.1, 3, 4
VWWY15 Virginia Vassilevska Williams, Joshua R. Wang, Richard Ryan Williams, and Huacheng Yu. Finding four-node subgraphs in triangle time. In Piotr Indyk, editor, Proceedings of the Twenty-Sixth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2015, San Diego, CA, USA, January 4-6, 2015, pages 1671–1680. SIAM, 2015. doi:10.1137/1.9781611973730.111. 6
VWY07 Virginia Vassilevska, Ryan Williams, and Raphael Yuster. All-pairs bottleneck paths for general graphs in truly subcubic time. In David S. Johnson and Uriel Feige, editors, Proceedings of the 39th Annual ACM Symposium on Theory of Computing, San Diego, California, USA, June 11-13, 2007, pages 585–589. ACM, 2007. doi:10.1145/1250790.1250876.2
VWY09 Virginia Vassilevska, Ryan Williams, and Raphael Yuster. All pairs bottleneck paths and max-min matrix products in truly subcubic time. Theory Comput., 5(1):173–189, 2009. 1
VX20a Virginia Vassilevska Williams and Yinzhan Xu. Monochromatic triangles, triangle listing and APSP. In Sandy Irani, editor, 61st IEEE Annual Symposium on Foundations of Computer Science, FOCS 2020, Durham, NC, USA, November 16-19, 2020, pages 786–797. IEEE, 2020. doi:10.1109/FOCS46700.2020.00078. 2
VX20b Virginia Vassilevska Williams and Yinzhan Xu. Truly subcubic min-plus product for less structured matrices, with applications. In Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 12–29, 2020. doi:10.1137/1.9781611975994.2.2
WW10 Virginia Vassilevska Williams and Ryan Williams. Subcubic equivalences between path, matrix and triangle problems. In 2010 IEEE 51st Annual Symposium on Foundations of Computer Science, pages 645–654. IEEE, 2010. 1, 3, 4
Yus09 Raphael Yuster. Efficient algorithms on sets of permutations, dominance, and real-weighted APSP. In Claire Mathieu, editor, Proceedings of the Twentieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2009, New York, NY, USA, January 4-6, 2009, pages 950–957. SIAM, 2009. doi:10.1137/1.9781611973068.103.2
ZTZU11 Shay Zakov, Dekel Tsur, and Michal Ziv-Ukelson. Reducing the worst case running times of a family of RNA and CFG problems, using Valiant's approach. Algorithms Mol. Biol., 6:1–22, 2011. 2
Zwi02 Uri Zwick. All pairs shortest paths using bridging sets and rectangular matrix multiplication. J. ACM, 49(3):289–317, 2002. 1, 6
A Motivation for the Kratsch-Spinrad problems
Almost all the structures considered by Spinrad and Kratsch are fundamental to structural graph theory. They are closely intertwined and can be understood through four central graph classes:
■1 The first class consists of perfect graphs, defined as graphs where every induced subgraph has a chromatic number equal to the size of its maximum clique. Perfect graphs are best known for the Strong Perfect Graph Theorem, conjectured by Berge in the 1960s [Ber60, Ber61] and proven by Chudnovsky, Robertson, Seymour, and Thomas [CRST06]. In this context, star-cutsets were first introduced by Chvátal [Chv85] to characterize minimal imperfect graphs, establishing star-cutsets as a powerful structural obstruction used to decompose graph classes and prove perfection [Chv85, Ree87].
■2 Triangulated graphs (also called chordal, rigid-circuit, monotone transitive, or perfect elimination graphs) are graphs in which every cycle of length four or more has a chord. Dirac [Dir61] gave two equivalent characterizations: a graph is chordal if and only if every induced subgraph is either a clique or contains two non-adjacent simplicial vertices or, equivalently, if and only if every minimal cutset is a clique-cutset. The latter formulation highlights why many problems can be solved faster on chordal graphs [Gav72, RTL76]: a clique cutset decomposes a graph into independently solvable pieces, since the separating clique interacts uniformly with every part of the split. This property of clique cutsets can be exploited for other graph classes as well.
■3 A superclass of triangulated graphs is the class of weakly triangulated graphs, in which two-pairs play a fundamental role. Weakly triangulated graphs were first defined by Hayward [Hay85] as graphs containing no induced holes (that is, induced cycles of length at least five) or antiholes (holes in the complement). Note that this is a generalization of triangulated graphs, since forbidding induced cycles of length four and five already forbids all antiholes. Sritharan conjectured that weakly triangulated graphs are exactly the graphs in which every induced subgraph is either a complete graph or contains a two-pair (so two-pairs play a role analogous to that of simplicial vertices). This was later proven by Chvátal and Rusu [CR93] (see also [ES95, CRS02]). Two-pairs are also central in the design of efficient algorithms for weakly triangulated graphs [HHM90, HSS07].
■4 Last but not least, AT-free graphs were first introduced by Lekkerkerker and Boland [LB62] as a way to relate interval graphs and triangulated graphs: they showed that a graph is an interval graph if and only if it is both chordal and AT-free. AT-free graphs were subsequently studied in relation to other graph classes, such as cocomparability graphs and perfect graphs [Gal67, LB79, GMT84], before being investigated in their own right in the seminal work of Corneil, Olariu, and Stewart [COS97]. One property of interval graphs that [COS97] extended to AT-free graphs is that every such graph contains a dominating pair realizing the diameter. These and other properties of AT-free graphs allow several NP-hard problems to be solved in polynomial time on AT-free graphs (e.g., [Sta12, KM12, BKKM99, Kra00, KMT08]); moreover, recent algorithmic results on AT-free graphs have even achieved running times that bypass the fine-grained lower bounds [Duc22, DDHV25].
B Dominated vertex is equivalent to OV
Recall that a vertex in a graph is dominated by a node if every neighbor of is also a neighbor of or is . We will present two reductions. The first will reduce the problem of finding a dominated vertex to OV in dimensions. The second will reduce the OV problem to finding a dominated vertex in a given graph. We will then conclude with a short extra proof, that OV in dimensions is equivalent to Dominated vertex which is also equivalent to solving .
Lemma B.1. Given an n-node graph one can create in time an instance of OV on two sets of n vectors on 2n dimensions so that it has a pair of orthogonal vectors if and only if G has a dominated vertex.
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
Proof. Let be the adjacency matrix of and let be its complement. Let be the identity matrix. Let be the matrix obtained by concatenating and (with to the right of ). Now let be the matrix obtained by concatenating on top of .
Note that for any given , we have that iff
■ for every such that , we have (i.e. if , then ), and
■ also (i.e. ).
Note that the standard reduction from OV on two sets to OV on a single set still works here: you can create a single matrix, Z, by concatenating X on top of the complement of Y and add two new columns, so that every row in Z corresponding to a row of X has 01 in those two columns, and every row in Z corresponding to a column of Y has 10 in those two columns.
Now we give the second direction of the reduction.
Lemma B.2. Given two sets U and V of n Boolean vectors on n coordinates, in time one can create an -node graph G so that G contains a dominated vertex if and only if there are , s.t. .
Proof. Let C be the n coordinates of the two n-sets of n-length vectors U and V.
Create a graph as follows (refer to Figure 6 for a visualization): Create vertex sets of size each. and are nodes corresponding to the coordinates . They are connected by a matching: for every there is an edge between its copies and . Both and are cliques.
X is an independent set, Y is a clique, and there is an edge between every node in X and every node in Y. Every node has a copy and an edge to that copy; is a clique. Similarly, every node has a copy and an edge to that copy; is a clique. Every node in has a copy in and an edge to that copy and is a clique.
Every node in has an edge to every node in . Each corresponds to a vector and every corresponds to vector . Each has an edge to iff has a 1 in position . Each has an edge to iff has a 0 in position .
Now, if and are orthogonal, then is a dominated vertex, dominated by : , and the remaining neighbors of are in : is adjacent to all of and since are orthogonal, has a 0 for every coordinate for which has a 1, so the neighbors of are also neighbors of . In fact this is an iff.
By construction, if we have any other pair of nodes not in , neither can dominate the due to the copies and cliques.
We will be explicit here. If U or V contains an all-0 vector, then the OV instance is a yes-instance and we can output a graph of two adjacent vertices, which has a dominated vertex. Hence we may assume that neither U nor V contains an all-0 vector.
■1 A node cannot dominate another because they each have an edge to a different node in .
■2 A node cannot dominate a node in since these sets are cliques and is missing an edge to some node in each of these cliques.
■3 A node cannot dominate any because has a neighbor in and does not. (This also means does not dominate any node.)
■4 A node cannot dominate any node in Y because Y is a clique and only has one edge to that clique.
■5 A node cannot dominate another node since they have edges to different nodes in . (This also means that the nodes in Y are not dominated by any other nodes in the graph.)
■6 A node cannot dominate any node in since these sets are cliques and is missing an edge to some node in each of these cliques.

Figure 6. A visualization of the graph constructed in Lemma B.2. Here:
■ Filled boxes are cliques: , , , , , .
White boxes are independent sets: X.
■ Thick gray bands represent complete bipartite edge sets.
■ Parallel black edges represent the four matchings/copy maps.
Blue/red curves are sample coordinate-incidence edges into . More specifically:
□ Blue: .
□ Red: .
■7 A node cannot dominate any node in X because these nodes have neighbors in and does not.
■8 A node cannot dominate another node in because the two nodes have edges to different nodes in . (This means that the nodes in cannot dominate any other node.)
■9 Consider a node . Its neighbors are in and it has neighbors in all these sets. The only other nodes that have neighbors in all these sets are other nodes . But from the above point, we get that no is dominated by any other node.
■10 Consider a node . It can only potentially be dominated by nodes in , but we already know that the nodes in do not dominate any other nodes. Another node in also cannot dominate since and have different neighbors in due to the matching. Hence the nodes of are not dominated by any other node.
■11 Similarly, a node can only be dominated by nodes in , but since is a clique and each has only one neighbor in , cannot dominate . Also, no other node of can dominate since they have distinct unique neighbors in . Thus the nodes of are not dominated.
■12 Analogous to the above point, the nodes of are not dominated by any other node.
Asteroidal Triples and Friends in (Likely Necessary) Matrix Multiplication Time
■13 The nodes of are not dominated by nodes outside of since is a clique and only nodes of have neighbors to all nodes of since V does not contain the all 0s vector. However, two nodes in also cannot dominate each other because of the matching to and hence no node of can be dominated.
■14 Consider a node . As has neighbors in all the sets , any node that dominates it must have neighbors in each of these sets. Only the nodes of have this property, and we have already established that cannot be dominated by another node of . Thus the only possible nodes to be dominated are the nodes of and they can only be dominated by nodes of .
Hence, has a dominated vertex iff there is some dominated by some which holds iff for every for which has an edge to, also has an edge to. This is if and only if the vector of corresponding to is orthogonal to the vector of corresponding to .
In the above construction, the dominated vertex can only be dominated by one of its neighbors. This also means that dominated vertex can be reduced to the problem .
This latter problem can be reduced back to OV on 2n dimensions pretty easily: We are given in which we want to solve . Let be the adjacency matrix and let be its complement. Let be the identity matrix. Let be the matrix obtained by concatenating and (with to the right of ). Now let be the matrix obtained by concatenating on top of . Note that if and only if
(1) for every such that , either or (i.e. if , then ), and
(2) , so and .
Theorem B.3. The following three problems are equivalent (using time reductions):
■ Dominated Vertex in a -node graph,
■ OV on vectors in dimensions,
■ The problem of deciding in a -node graph.