Counting Small Induced Subgraphs:
Scorpions Are Easy but Not Trivial
Abstract
In the parameterized problem for fixed graph properties , given as input a graph and an integer , the task is to compute the number of induced -vertex subgraphs satisfying . Dörfler et al. [Algorithmica 2022] and Roth et al. [SICOMP 2024] conjectured that is #W[1]-hard for all non-meager properties , i.e., properties that are nontrivial for infinitely many . This conjecture has been confirmed for several restricted types of properties, including all hereditary properties [STOC 2022] and all edge-monotone properties [STOC 2024].
We refute this conjecture by showing that induced -vertex graphs that are scorpions can be counted in time for all . Scorpions were introduced more than 50 years ago in the context of the evasiveness conjecture. A simple variant of this construction results in graph properties that achieve arbitrary intermediate complexity assuming ETH.
Moreover, we formulate an updated conjecture on the complexity of that correctly captures the complexity status of scorpions and related constructions.
Keywords and phrases:
induced subgraphs, counting complexity, parameterized complexity, scorpionsCopyright and License:
2012 ACM Subject Classification:
Theory of computation Fixed parameter tractability ; Mathematics of computing Graph algorithmsFunding:
††margin:Editors:
Anne Benoit, Haim Kaplan, Sebastian Wild, and Grzegorz HermanSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Counting small patterns in graphs is a fundamental problem in computer science, with applications in bioinformatics [39], network analysis [28, 38], databases [18], and other areas. In this paper, we focus on counting certain induced -vertex graphs in a large -vertex input graph , for fixed .
Counting Induced Copies of a Fixed Graph.
The starting point of our investigation is the problem of counting induced -copies for a fixed individual graph . Formally, this problem asks for the number of sets such that the induced subgraph is isomorphic to . We stress that is considered fixed in this problem, and only is the input. In particular, each such problem can be solved in time , which is polynomial in for fixed .
Some improvements over the trivial running time are known: For example, triangles can be counted in time [21], where is the optimal exponent of matrix multiplication [1]. This improvement can be lifted to cliques beyond : Denoting by the optimal exponent for counting -cliques in -vertex graphs, similar to the exponent of matrix multiplication, we have (see [30]). Under the Exponential-Time Hypothesis ETH, there exists a fixed constant such that (see [4]).
Writing to denote the optimal exponent of counting induced -subgraphs [5] for fixed , a straightforward reduction shows that for all -vertex graphs . In other words, for fixed , all induced -counting problems with -vertex are equally hard, and they require an exponent of under ETH. Compare this to counting not necessarily induced subgraphs, where different patterns can yield different complexity exponents: The number of subgraph copies of the edgeless -vertex graph in an -vertex graph is and can thus be computed in linear time, while counting -cliques is hard.
Counting Patterns From a Set.
In recent years, counting occurrences of individual -vertex patterns has been generalized to counting pattern occurrences from a fixed set of patterns [22, 23]. In this setting, we fix a number and a set of -vertex graphs. On input , we wish to count the induced -vertex subgraphs of isomorphic to some . This subsumes the problem of counting induced -copies, but also allows us to address, e.g., the problem of counting connected -vertex graphs [22].
Of course, for every set , this problem can be solved by counting induced -copies for the individual graphs , which readily implies an time algorithm. Significantly faster algorithms were only known for trivial pattern sets , i.e., if the pattern set is empty or contains all -vertex graphs. In these cases, the output is just or , respectively. Also, for some pattern sets , slight improvements can be obtained over the time algorithm [9], but no nontrivial set of -vertex graphs with exponent strictly less than was known. In other words, counting induced patterns from a fixed set of -vertex graphs appeared to be either trivial or very hard.
Parameterized Complexity.
In the literature, pattern counting is often phrased in terms of graph properties that may hold on infinitely many graphs rather than finite sets . More specifically, in the problem for a fixed graph property , the input is a graph and , and we ask to count the induced -vertex subgraphs of satisfying . Compared to the previous setting, the pattern size is now part of the input rather than a fixed constant, so the problem may not be polynomial-time solvable. We say that is fixed-parameter tractable if it can be solved in time for a computable function , and we would like to understand which properties render fixed-parameter tractable.
In prior literature, all known properties with fixed-parameter tractable are essentially trivial: Formally, we call meager if the restriction of to -vertex graphs (i.e., the -th slice of ) is trivial for all but finitely many . Meager computable properties trivially render fixed-parameter tractable. Complementing this, the problem was conjectured to be #W[1]-hard for all other computable properties . Here, #W[1] is the parameterized analogue of #P; it is known that ETH rules out fixed-parameter tractable algorithms for all #W[1]-hard problems (see, e.g., [15]).
Our Results.
We show that Conjecture 1 fails. That is, we exhibit non-meager properties such that is fixed-parameter tractable – in fact, even polynomial-time solvable.
These counterexamples are derived from simple constructions that were introduced 50 years ago in the context of the evasiveness conjecture [27, 33, 26], a major open problem about the worst-case query complexity of graph properties. In the setting of the evasiveness conjecture, we are given a fixed graph property , and we wish to decide whether an unknown -vertex graph is contained in , where can only be accessed via edge queries. More precisely, the vertex set is known, and for two vertices , we can query whether is an edge of . Clearly, every property can be decided by querying all pairs of vertices, and the evasiveness conjecture postulates that this trivial worst-case upper bound is optimal for all (edge-)monotone properties.
However, when we drop the monotonicity requirement, properties with linear query complexity are known [27, 33], and it turns out that those examples can be used to refute Conjecture 1.
-
As a simple counterexample, the property of having a sink in a directed graph is nontrivial on graphs of fixed size , and hence not meager. Here, a graph satisfies if there is a vertex with for all .111Contrary to contemporary notation, in which a sink is a vertex of out-degree , we use the term sink to refer to a vertex such that for all . This follows the terminology of the original paper [33], which is still common in the context of the evasiveness conjecture. Nevertheless, can be solved in linear time on directed graphs without antiparallel edges. We invite the reader to discover the algorithm themselves before proceeding to Section 3.1. This property actually presented the first counterexample to a (too strong) version of the evasiveness conjecture on directed graphs [33].
-
A marginally more involved construction also works for undirected graphs: The scorpion property is a non-meager property of undirected graphs such that can be solved in time on general undirected graphs. Scorpions were the first counterexample to a (too strong) variant of the evasiveness conjecture for undirected graphs [27], prompting the restriction of this conjecture to monotone properties.
-
We show more generally that can be made gradually harder: For every , we construct a generalized scorpion property such that can be solved in time, while ETH rules out time algorithms for a fixed constant . Our construction also allows for to be a function in . Under the Strong Exponential-Time Hypothesis SETH, we rule out time algorithms.
Finally, informed by these counterexamples, we formulate a new hypothesis on the computational complexity of for properties . This new hypothesis is more technical and explained in Section 4. In a nutshell, it is based around the well-established fact that sums of induced pattern counts like the -th slices can be expressed as linear combinations of (not necessarily induced) subgraph counts [5], and that such basis changes may help in understanding the complexity of a problem [5, 6, 9, 12, 13, 14, 16, 17, 24, 35, 37, 36].
More specifically, the new hypothesis postulates that a useful phenomenon occurs when expressing the graph parameter as a linear combination of subgraph counts: Any hard term in such a linear combination ensures hardness of the entire linear combination. General linear combinations of -vertex subgraph counts do not enjoy this useful phenomenon. We demonstrate in Section 4 that our conjecture would imply useful new ways of proving hardness of .
Further Connections to the Evasiveness Conjecture.
Notably, this work is not the first to draw connections between the evasiveness conjecture and the computational complexity of . Indeed, this connection was already made by Roth and Schmitt [35], who adapted the topological approach to the evasiveness conjecture, dating back to Kahn, Saks and Sturtevant [25], to prove lower bounds for for certain graph properties . In a similar spirit, [9] adapts a lower bound of on the query complexity of monotone graph properties due to Rivest and Vuillemin [32] to obtain hardness of for monotone properties . The present work complements these connections on the upper-bound side: We observe that standard examples of properties with linear query complexity admit efficient algorithms for .
Currently, these connections seem to be restricted to specific examples and proof techniques. We believe that it is an interesting open question whether a general connection can be established in either direction. Without going into details, we point out that the Fourier degree of a property (when is restricted to a slice and viewed as a Boolean function) provides a lower bound both for the query complexity of [31], and for the computational complexity of [9]. However, in both cases, large Fourier degree is only known to give a sufficient criterion for hardness, so it does not establish a direct link between the query complexity of and the complexity of .
2 Preliminaries
We write and for . For a set , we write for the set of all -element subsets of .
Graph Theory.
We follow standard textbooks [11] for graph-theoretic notation. Unless stated otherwise, graphs are simple (i.e., without multiedges or self-loops) and undirected. We write and for the vertex and edge set of , respectively, and we write for the neighborhood of in .
A graph is a subgraph of , written , if it can be obtained by deleting vertices and edges from . For , we write to denote the induced subgraph on . For , we write for the subgraph with vertex set and edge set . For , we write for the complete -vertex graph, for the edgeless -vertex graph, and for the complete bipartite graph on vertices.
Induced Subgraph Counts.
A graph property is a function that maps each graph to and is invariant under isomorphisms, i.e., for all isomorphic graphs . For , the -th slice of , denoted by , is the restriction of to -vertex graphs. We implicitly identify with the set of all -vertex graphs satisfying , and we use graph properties and sets of graphs interchangeably. For and a graph , the number of -vertex induced subgraphs satisfying will be denoted by
Moreover, we write for the map .
Complexity Theory.
A parameterized problem consists of a function and a computable parameterization . It is fixed-parameter tractable (FPT) if there is a computable function , a constant , and a deterministic algorithm that computes in time for all . We write for the parametrized problem that gets as input a graph and a parameter , and computes .
For lower bounds, we rely on the Exponential-Time Hypothesis (ETH) [20], which asserts the existence of some such that the Boolean satisfiability problem on -variable -CNF formulas cannot be solved in time (see also [10, Conjecture 14.1]). The Strong Exponential-Time Hypothesis (SETH) [19] states that for all , there is a such that Boolean Satisfiability on -CNF formulas cannot be solved in (see also [10, Conjecture 14.2]).
3 Main Result
To present the idea underlying the tractability of scorpions, we first consider a variant for directed graphs, where this idea becomes particularly simple. Then we introduce scorpions and their generalizations and prove the claimed upper and lower complexity bounds. Finally, we use scorpions to show that a useful and previously known complexity lower bound on the complexity of is tight.
3.1 Directed Graphs Containing a Sink
As a warm-up, we consider a property of directed graphs that is nontrivial but yields a linear-time counting problem . For this subsection, we momentarily consider directed graphs without antiparallel edges, i.e., at most one of the edges and may be present. The property is defined to hold on if there is a sink vertex , i.e., a vertex such that for all . This property is clearly nontrivial in every slice , as there are -vertex graphs with a sink and -vertex graphs without a sink (e.g., an in-star versus the edgeless graph).
Towards an algorithm, we observe crucially that every graph without antiparallel edges contains at most one sink, since two distinct sinks would imply the presence of both edges and . Hence, for an input graph , the set of -vertex sets containing a sink
can be partitioned, according to the unique sink, into
Finally, for fixed , every set has the form with all pairwise distinct, distinct from , and incoming neighbors of , i.e., they satisfy . Writing for the number of incoming neighbors of , it follows that
Combining the above equations, we readily obtain a linear-time algorithm for by computing for all and evaluating the resulting formula
| (1) |
3.2 Generalized Scorpions
The algorithmic idea for counting -vertex graphs with a sink vertex applies whenever the set of induced subgraphs to be counted admits a partition into few sets such that each is easily determined. More specifically, we consider partitions in which each is determined by the manifestation of a special small set of uniquely identifiable vertices (e.g., the sink vertex), while the subgraph induced by the other vertices is irrelevant.
To apply this idea to undirected graphs, we use a construction that was first presented in [27] for the so-called evasiveness conjecture, and which has become a standard example in this context (see, e.g., [26, Section 13.1]): A graph is a scorpion if it can be obtained from an arbitrary graph with by adding fresh vertices , making adjacent to all of , and then adding the edges and . The vertices are usually called body, tail and sting, and it can be shown crucially (see Lemma 3 below) that these vertices are uniquely recoverable from . Similarly to the arguments above, this allows us (in Theorem 4) to design an efficient algorithm to count induced scorpions.
In this paper, we prove these statements for a slightly generalized version of scorpions, since this allows us to obtain gradually harder properties. Towards this end, we replace the tail vertex by a path of vertices . See also Figure 1.
Definition 2.
For , an -scorpion is a graph with that admits a tuple of pairwise distinct vertices
such that the following holds: Writing and calling the vertices in the legs of , we have that
-
the graph is an induced path from the body to the sting ,
-
the body is adjacent to all legs, and
-
the body is the only vertex in adjacent to legs.
We define as the class of all -scorpions.
The property is non-meager for all : Indeed, for , at least one -vertex scorpion exists (e.g., consisting of the sting, tail, body, and an independent set of legs), while the -vertex graph is not a scorpion.
Note that scorpion graphs are -scorpions. Also note that the definition speaks about “the” body, tail, and sting vertices, as if they were unique. Indeed, they are:
Lemma 3.
If is an -scorpion, then its body, tail, and sting are unique.
Proof.
Let and recall that by Definition 2. The body has degree . Since every leg has degree at most , we conclude that contains exactly one vertex of degree ; this uniquely identifies .
The vertices not adjacent to are precisely . Among these, is the only vertex of degree and is thus uniquely identified. The vertices are uniquely identified by their distance from , since vertex is the only vertex at distance from .
We use this lemma to show that can be solved in polynomial time for every fixed , similarly to the algorithm presented in Section 3.1.
Theorem 4.
There is an algorithm that, given and an -vertex graph as input, computes in time .
Proof.
Let be the set of induced -vertex graphs in that are -scorpions. In our proof, we use the uniqueness of body, tail, and sting to partition into classes for and then determine each in linear time. Then the algorithm follows from
| (2) |
More specifically, let denote the tuples inducing a path in . Given with , let denote the set of -vertex -scorpions in with body , tail and sting . By Lemma 3, the sets for partition , so (2) holds with for . It remains to determine for . We show that
| (3) |
Indeed, since the vertices in induce a path, the set consists of all -vertex sets that contain and additional vertices (the legs) that are adjacent to and not adjacent to any or . The number of such sets is precisely .
3.3 Lower Bounds Based on ETH
Next, we show that the running time obtained in Theorem 4 is essentially optimal under ETH. In particular, by choosing as a function of , we can use -scorpions to obtain properties with varying computational difficulty.
To obtain the lower bound, we rely on a result from [6, 9, 37] that provides a lower bound based on the set of possible Hamming weights attained by a property : Given a graph property and , we say that attains weight on slice if there is a graph with vertices and edges. It avoids weight on slice if it does not attain it. Note that every property attains between and different weights on slice , since the attained weights form a subset of .
Theorem 5 ([9, Lemma 5.1] & [6, Theorem 7.1]).
Assuming ETH, there are such that the following holds: If and and avoids at least distinct weights and attains at least one weight, all on slice , then no algorithm computes in time .
For , we can easily determine the number of weights attained by on slice : Since there is no freedom in choosing edges incident to body, tail and sting, this number is precisely . Thus, the number of weights avoided by on slice is
For , it follows that avoids at least weights on slice . Being nontrivial, it attains at least one weight. Theorem 5 readily implies:
Corollary 6.
Assuming ETH, there are such that the following holds: If and , then no algorithm computes in time .
Remark 7.
With the lower bound of Corollary 6 at hand, we can obtain properties with varying computational complexity, by choosing dependent on . For example, setting yields a property for which takes time under ETH. More generally, consider a monotone increasing with for all . We define to contain exactly the -vertex -scorpions for all .
Corollary 8.
Let be monotone increasing with . Then can be solved in time , and assuming ETH, not in time for a fixed constant .
In the full version of the paper, we combine results from Section 4 with a result from [3] to obtain the following lower bound under the Strong Exponential-Time Hypothesis SETH.
Proposition 9.
Assuming SETH, for every and , there is no algorithm solving in time .
We stress that, in contrast to Corollaries 6 and 8, the SETH lower bound from Proposition 9 only holds for fixed , and not if is chosen as a function of .
4 An Updated Conjecture Using the Subgraph Basis
Seeing what scorpions have done to Conjecture 1, it is natural to update the conjecture and reconsider the question when is fixed-parameter tractable. Towards this, we first observe that our counterexamples can be generalized in a number of ways while keeping their key features. This suggests that a dichotomy theorem for will have to encompass various tractable cases, as the following facts indicate:
-
The key to the efficient algorithm in Theorem 4 is that body, tail and sting are uniquely identified in every -scorpion, and that no restrictions are imposed on the subgraph induced by the legs. As long as there is a constant-sized set of uniquely identifiable vertices and no restrictions on the remaining vertices, an efficient algorithm for follows.
-
This however is not the final word: Observe that has the same complexity as , where contains exactly those graphs that are not contained in (see, e.g., [37, Fact 2.3]). Notably, the non-scorpion property contains the complete graph on vertices for every , which arguably has no constant-sized set of “uniquely identifiable” vertices.
-
Beyond, we can also “nest” easy properties: For example, let be the graph property containing all graphs with so that (a) is a -scorpion, with some set of legs , and (b) is not a -scorpion. Then can be solved in polynomial time using similar arguments as in Theorem 4.
The diversity of these examples suggests that a complexity classification for all properties may be quite intricate. To obtain a new classification conjecture, we first express the induced subgraph counts arising in as linear combinations of (not necessarily induced) subgraph counts. Such basis changes among counting problems have already been used for before [6, 9, 12, 13, 14, 16, 35, 37].222Going further, the problem has already been expressed in the similar basis of homomorphism counts, and a dichotomy criterion was shown in terms of this basis [5]. However, the transformation into the homomorphism basis renders combinatorial interpretations of opaque and only yields an implicit dichotomy criterion. In particular, all complexity results listed above were achieved using the subgraph basis rather than the homomorphism basis.
In the following, recall that for is the restriction of to -vertex graphs and let be the number of induced -vertex graphs satisfying in an input graph. Likewise let denote the number of not necessarily induced -subgraph copies in an input graph. Then there exists a finite set of unlabeled graphs on exactly vertices, and coefficients for , such that
| (4) |
see [2, 5]. In fact, an explicit formula for the coefficients can be found through inclusion-exclusion: Given a graph property and graph , the coefficient in (4) is given by the so-called alternating enumerator (see [9, 35]), sometimes defined without the factor below [12, 13, 14],
Evaluating fixed finite linear combinations of -vertex graphs as in (4) is asymptotically no harder than evaluating the individual -subgraph counts with . For fixed graphs , individual -subgraph counts in turn can be evaluated in time , where is the vertex-cover number of (see [5, Theorem 1.1]). In particular, this implies that is fixed-parameter tractable when only graphs of small vertex-cover number satisfy . More quantitatively, writing for the maximal vertex cover number among -vertex graphs with , we have:
Theorem 10 (see, e.g., [8, Theorem 3.6]).
For every computable graph property , the problem can be solved in time for a computable function .
Conversely, under certain conditions, a -vertex graph with that is hard on its own also implies hardness of the entire linear combination. For example, under the guarantee that all patterns in the linear combination have the same number of vertices, this occurs when some graph with has large treewidth (see, e.g., [12]). Large treewidth is however only a sufficient criterion, since counting -matchings (and more generally, patterns of large vertex-cover number) is hard as well [7].
Knowing about a similar phenomenon for the related case of homomorphism counts, one333Some did, see a superseded arXiv version of a related paper: https://arxiv.org/abs/2407.07051v1 might be led to believe that linear combinations of -vertex subgraph counts are hard if at least one pattern has large vertex-cover number. However, this hypothesis is too optimistic, as shown by -partial determinants: These are weighted counts of -vertex cycle covers in a graph , where is counted with weight if it contains an odd number of cycles, and with weight otherwise. The patterns in the subgraph count expansion of -partial determinants are precisely the cycle covers on vertices. These do have large vertex-cover number, yet -partial determinants can be computed in time due to the same cancellations that render usual determinants tractable.
In our updated version of Conjecture 1, we assert that such cancellations cannot occur for . That is, we assert that graphs of large vertex-cover number in the subgraph expansion of indeed render the linear combination hard. Recall that denotes the maximal vertex cover number among -vertex graphs with .
Conjecture 11.
If is a computable property and the function is unbounded, then the problem is #W[1]-hard.
Note that, by Theorem 10, the problem is fixed-parameter tractable if is bounded. Hence, Conjecture 11 formulates a complete characterization in terms of the subgraph basis expression of a property: For a computable property , the problem is fixed-parameter tractable if is bounded, and #W[1]-hard otherwise.
To the best of our knowledge, no counterexamples are known for Conjecture 11. Since -partial determinants can be negative, they cannot be written as for a property , so they do not form a counterexample to our updated conjecture. Moreover, we verify that none of the generalized scorpion properties for fixed refute it. More specifically, we prove that, for every ,
| (5) |
Thus for fixed , so does not satisfy the premises of Conjecture 11.
4.1 Scorpions in the Subgraph Basis
We prove (5) in this section. Recall the definition of tail, sting, body, and legs of an -scorpion . We call an -scorpion a skeleton if its legs form an independent set. Moreover, an -scorpion fossil is any graph obtained from an -scorpion skeleton by adding an arbitrary number of edges with such that at least one of is not a leg. (Considering Figure 1, a scorpion skeleton is obtained by removing all dashed edges. A scorpion fossil is obtained from a scorpion skeleton by adding arbitrary edges, but not between legs.)
To show (5), we prove the stronger statement that the graphs occurring with non-zero coefficients in the subgraph expansion of are precisely the -scorpion fossils. This is indeed stronger: The vertex-cover number of -scorpion fossils is at most , since they retain the independent set on the legs. On the other hand, the augmented biclique obtained from a complete bipartite graph by turning the left side (one + 2 vertices) into a clique is an -scorpion fossil of vertex-cover number .
Lemma 12.
For every and every -vertex graph with , we have if and only if is an -scorpion fossil.
Proof.
Let . Similar to Theorem 4, we use the uniqueness of body, tail, and sting to partition into classes for . More specifically, for a tuple , let denote the set of all such that the scorpion has body , tail and sting . Note that we may have .
By Lemma 3, the sets for partition , which implies
| (6) |
In the following, for a tuple , we write for the set of entries of .
Claim 13.
If is such that is not a vertex cover of , then
Proof.
Let us first observe that the statement is trivial if .
Let be the edges of without an endpoint in . Since is not a vertex cover, we get . Observe that for all , because edges incident to body, tail or sting (i.e., edges incident to the vertices in ) are fixed. Since edges between leg vertices can be chosen arbitrarily, we conclude that
In particular, we obtain
since .
Now, for the forward direction of the lemma, suppose that . Then there is some such that . This implies that
-
(a)
is a vertex cover of by Claim 13, so the vertices in form an independent set in , and
-
(b)
, i.e., there is some such that is an -scorpion with body , tail and sting . Thus, the vertices in form the legs of .
These two properties together directly imply that is an -scorpion fossil.
For the backward direction, suppose is an -scorpion fossil, and let denote the tuple of body, tail, and sting of an underlying -scorpion skeleton. Then
-
(i)
,
-
(ii)
is a vertex cover of .
The first item holds because the underlying -scorpion skeleton is a witness to , while the second item holds from the definition of -scorpion skeletons.
Now, let denote the set of all tuples satisfying (i) and (ii). Then, for every and every , the legs of form an independent set, since the vertices in form a vertex-cover. This implies that is an -scorpion skeleton, so contains exactly edges, and we obtain
| (7) |
On the other hand, for , the tuple violates (i), or violates (ii). We obtain directly (in the first case) or via Claim 13 (in the second case) that
| (8) |
Let us abbreviate . Then it follows that
where we used (7) and (8) in the third equality, and where the last inequality holds since and for all .
As discussed above, the lemma implies Equation (5) on the maximum vertex-cover number in the subgraph expansion of the scorpion property. Together with Theorem 10, the upper bound on the vertex-cover number gives an alternative proof that is fixed-parameter tractable for , with the same polynomial degree as in Theorem 4. We stress that similar arguments also work for the adaptations of the scorpion property discussed in the beginning of Section 4. For example, for the property defined there, we get for every .
4.2 Implications of the Conjecture
To conclude the paper and as a potential avenue for future work, we show that our refined Conjecture 11 would easily imply generalizations and variants of known hardness results.
Most of the recent works (see, e.g., [9, 12, 13, 14, 37]) prove hardness of by identifying graphs with non-zero alternating enumerator and unbounded treewidth rather than vertex-cover number; this is a stronger property. More concretely, let denote the maximal treewidth among -vertex graphs with . If is computable and is unbounded, then is #W[1]-hard (see, e.g., [9, Theorem 3.1]). However, showing that is unbounded is often quite a challenge. Conjecture 11 postulates that it suffices for to be unbounded to obtain #W[1]-hardness, which is often much easier to show.
As a concrete example, previous work [12] established hardness of in the presence of infinitely many primes with , where and are the edge-less and complete bipartite graphs, respectively. Similarly, for edge-monotone properties , which are studied in [9, 13, 14], we typically obtain for all sufficiently large . As we show below, Conjecture 11 implies that infinitely many arbitrary prime-order vertex-transitive graphs , with suffice for hardness. A graph is called vertex-transitive if for all vertices there exists an automorphism with .
Proposition 14.
Let be a graph property such that, for infinitely many primes , there are vertex-transitive graphs , with vertices and . Then is #W[1]-hard assuming Conjecture 11.
Proof.
For a prime , we say that a group is a -group if its order is a power of , and we establish some facts about groups and graphs:
-
(I)
Each transitive group that operates on a set of elements contains a transitive -subgroup. This holds since contains a cyclic group of order , which is transitive (see the discussion before [29, Theorem 1] for more details).
-
(II)
Each vertex-transitive graph is regular. This is trivial.
-
(III)
Every -regular -vertex graph with has vertex-cover number : By [34], the independence number of is at most , so .
By the requirements of the proposition, there are infinitely many primes such that there are vertex-transitive graphs , with vertices and . Hence, there is an with . Let be this graph. Then contains a transitive -subgroup by (I). We say a subgraph of is a fixed point of in if and for all , where . Let denote the set of fixed points of in (see [14, Appendix A] for more details on fixed points of group actions in graphs).
We show that there is a fixed point that has a non-zero alternating enumerator and . For this, let be a fixed point in with and for all with (i.e., is a proper subgraph of ). Such a graph exists since and . Now, [13, Lemma 4.8] implies that . Moreover, [13, Lemma 3.1] implies that , and hence is vertex-transitive. Lastly, (II) and (III) yield that .
This means that we can find a sequence of graphs with unbounded vertex cover number and , and thus is #W[1]-hard by Conjecture 11.
References
- [1] 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.
- [2] Christian Borgs, Jennifer Chayes, László Lovász, Vera T. Sós, and Katalin Vesztergombi. Counting graph homomorphisms. In Topics in discrete mathematics, volume 26 of Algorithms Combin., pages 315–371. Springer, Berlin, 2006. doi:10.1007/3-540-33700-8_18.
- [3] Karl Bringmann and Jasper Slusallek. Current algorithms for detecting subgraphs of bounded treewidth are probably optimal. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, July 12-16, 2021, Glasgow, Scotland (Virtual Conference), volume 198 of LIPIcs, pages 40:1–40:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPICS.ICALP.2021.40.
- [4] Jianer Chen, Xiuzhen Huang, Iyad A. Kanj, and Ge Xia. Strong computational lower bounds via parameterized complexity. J. Comput. Syst. Sci., 72(8):1346–1367, 2006. doi:10.1016/J.JCSS.2006.04.007.
- [5] Radu Curticapean, Holger Dell, and Dániel Marx. Homomorphisms are a good basis for counting small subgraphs. In Hamed Hatami, Pierre McKenzie, and Valerie King, editors, Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2017, Montreal, QC, Canada, June 19-23, 2017, pages 210–223. ACM, 2017. doi:10.1145/3055399.3055502.
- [6] Radu Curticapean, Simon Döring, Daniel Neuen, and Jiaheng Wang. Can you link up with treewidth? In Olaf Beyersdorff, Michal Pilipczuk, Elaine Pimentel, and Kim Thang Nguyen, editors, 42nd International Symposium on Theoretical Aspects of Computer Science, STACS 2025, March 4-7, 2025, Jena, Germany, volume 327 of LIPIcs, pages 28:1–28:24. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPICS.STACS.2025.28.
- [7] Radu Curticapean and Dániel Marx. Complexity of counting subgraphs: Only the boundedness of the vertex-cover number counts. In 55th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2014, Philadelphia, PA, USA, October 18-21, 2014, pages 130–139. IEEE Computer Society, 2014. doi:10.1109/FOCS.2014.22.
- [8] Radu Curticapean and Daniel Neuen. Counting small induced subgraphs: Hardness via Fourier analysis. CoRR, abs/2407.07051, 2024. doi:10.48550/arXiv.2407.07051.
- [9] Radu Curticapean and Daniel Neuen. Counting small induced subgraphs: Hardness via Fourier analysis. In Yossi Azar and Debmalya Panigrahi, editors, Proceedings of the 2025 ACM-SIAM Symposium on Discrete Algorithms, SODA 2025, New Orleans, LA, USA, January 12-15, 2025, pages 3677–3695. SIAM, 2025. doi:10.1137/1.9781611978322.122.
- [10] Marek Cygan, Fedor V. Fomin, Lukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michal Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer, 2015. doi:10.1007/978-3-319-21275-3.
- [11] Reinhard Diestel. Graph Theory. Springer Berlin, 5 edition, 2017. doi:10.1007/978-3-662-53622-3.
- [12] Julian Dörfler, Marc Roth, Johannes Schmitt, and Philip Wellnitz. Counting induced subgraphs: An algebraic approach to #W[1]-hardness. Algorithmica, 84(2):379–404, 2022. doi:10.1007/S00453-021-00894-9.
- [13] Simon Döring, Dániel Marx, and Philip Wellnitz. Counting small induced subgraphs with edge-monotone properties. In Bojan Mohar, Igor Shinkar, and Ryan O’Donnell, editors, Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, Vancouver, BC, Canada, June 24-28, 2024, pages 1517–1525. ACM, 2024. doi:10.1145/3618260.3649644.
- [14] Simon Döring, Dániel Marx, and Philip Wellnitz. From graph properties to graph parameters: Tight bounds for counting on small subgraphs. In Yossi Azar and Debmalya Panigrahi, editors, Proceedings of the 2025 ACM-SIAM Symposium on Discrete Algorithms, SODA 2025, New Orleans, LA, USA, January 12-15, 2025, pages 3637–3676. SIAM, 2025. doi:10.1137/1.9781611978322.121.
- [15] Jörg Flum and Martin Grohe. Parameterized Complexity Theory. Texts in Theoretical Computer Science. An EATCS Series. Springer, 2006. doi:10.1007/3-540-29953-X.
- [16] Jacob Focke and Marc Roth. Counting small induced subgraphs with hereditary properties. SIAM J. Comput., 53(2):189–220, 2024. doi:10.1137/22M1512211.
- [17] Leslie Ann Goldberg and Marc Roth. Parameterised and fine-grained subgraph counting, modulo 2. Algorithmica, 86(4):944–1005, 2024. doi:10.1007/S00453-023-01178-0.
- [18] Martin Grohe, Thomas Schwentick, and Luc Segoufin. When is the evaluation of conjunctive queries tractable? In Jeffrey Scott Vitter, Paul G. Spirakis, and Mihalis Yannakakis, editors, Proceedings on 33rd Annual ACM Symposium on Theory of Computing, July 6-8, 2001, Heraklion, Crete, Greece, pages 657–666. ACM, 2001. doi:10.1145/380752.380867.
- [19] Russell Impagliazzo and Ramamohan Paturi. On the complexity of k-SAT. J. Comput. Syst. Sci., 62(2):367–375, 2001. doi:10.1006/JCSS.2000.1727.
- [20] Russell Impagliazzo, Ramamohan Paturi, and Francis Zane. Which problems have strongly exponential complexity? J. Comput. Syst. Sci., 63(4):512–530, 2001. doi:10.1006/JCSS.2001.1774.
- [21] Alon Itai and Michael Rodeh. Finding a minimum circuit in a graph. SIAM J. Comput., 7(4):413–423, 1978. doi:10.1137/0207033.
- [22] Mark Jerrum and Kitty Meeks. The parameterised complexity of counting connected subgraphs and graph motifs. J. Comput. Syst. Sci., 81(4):702–716, 2015. doi:10.1016/J.JCSS.2014.11.015.
- [23] Mark Jerrum and Kitty Meeks. Some hard families of parameterized counting problems. ACM Trans. Comput. Theory, 7(3):11:1–11:18, 2015. doi:10.1145/2786017.
- [24] Emily Jin, Michael M. Bronstein, İsmail İlkan Ceylan, and Matthias Lanzinger. Homomorphism counts for graph neural networks: All about that basis. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024. OpenReview.net, 2024. URL: https://openreview.net/forum?id=zRrzSLwNHQ.
- [25] Jeff Kahn, Michael E. Saks, and Dean Sturtevant. A topological approach to evasiveness. Comb., 4(4):297–306, 1984. doi:10.1007/BF02579140.
- [26] Dmitry N. Kozlov. Combinatorial Algebraic Topology, volume 21 of Algorithms and computation in mathematics. Springer, 2008. doi:10.1007/978-3-540-71962-5.
- [27] Hendrik Lenstra, Marc R. Best, and Peter van Emde Boas. A sharpened version of the Aanderaa-Rosenberg conjecture. Report 30/74, Mathematisch Centrum Amsterdam (1974), pages 1–20, 1974. URL: https://hdl.handle.net/1887/3792.
- [28] Ron Milo, Shai S. Shen-Orr, Shalev Itzkovitz, Nadav Kashtan, Dmitri B. Chklovskii, and Uri Alon. Network motifs: Simple building blocks of complex networks. Science, 298(5594):824–827, 2002. doi:10.1126/science.298.5594.824.
- [29] Peter M. Neumann. Transitive permutation groups of prime degree. In Proceedings of the Second International Conference on the Theory of Groups, volume Vol. 372 of Lecture Notes in Math., pages 520–535. Springer Berlin Heidelberg, 1974. doi:10.1007/978-3-662-21571-5_55.
- [30] Jaroslav Nešetřil and Svatopluk Poljak. On the complexity of the subgraph problem. Comment. Math. Univ. Carolin., 26(2):415–419, 1985. URL: http://dml.cz/dmlcz/106381.
- [31] Noam Nisan and Mario Szegedy. On the degree of boolean functions as real polynomials. Comput. Complex., 4:301–313, 1994. doi:10.1007/BF01263419.
- [32] Ronald L. Rivest and Jean Vuillemin. On recognizing graph properties from adjacency matrices. Theor. Comput. Sci., 3(3):371–384, 1976. doi:10.1016/0304-3975(76)90053-0.
- [33] Arnold L. Rosenberg. On the time required to recognize properties of graphs: a problem. SIGACT News, 5(4):15–16, 1973. doi:10.1145/1008299.1008302.
- [34] Moshe Rosenfeld. Independent sets in regular graphs. Israel J. Math., 2:262–272, 1964. doi:10.1007/BF02759743.
- [35] Marc Roth and Johannes Schmitt. Counting induced subgraphs: A topological approach to #W[1]-hardness. Algorithmica, 82(8):2267–2291, 2020. doi:10.1007/S00453-020-00676-9.
- [36] Marc Roth, Johannes Schmitt, and Philip Wellnitz. Detecting and counting small subgraphs, and evaluating a parameterized tutte polynomial: Lower bounds via toroidal grids and cayley graph expanders. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, July 12-16, 2021, Glasgow, Scotland (Virtual Conference), volume 198 of LIPIcs, pages 108:1–108:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPICS.ICALP.2021.108.
- [37] Marc Roth, Johannes Schmitt, and Philip Wellnitz. Counting small induced subgraphs satisfying monotone properties. SIAM J. Comput., 53(6):FOCS20–139–FOCS20–174, 2024. doi:10.1137/20M1365624.
- [38] Benjamin Schiller, Sven Jager, Kay Hamacher, and Thorsten Strufe. StreaM - A stream-based algorithm for counting motifs in dynamic graphs. In Adrian-Horia Dediu, Francisco Hernández Quiroz, Carlos Martín-Vide, and David A. Rosenblueth, editors, Algorithms for Computational Biology - Second International Conference, AlCoB 2015, Mexico City, Mexico, August 4-5, 2015, Proceedings, volume 9199 of Lecture Notes in Computer Science, pages 53–67. Springer, 2015. doi:10.1007/978-3-319-21233-3_5.
- [39] Falk Schreiber and Henning Schwöbbermeyer. Frequency concepts and pattern detection for the analysis of motifs in networks. Trans. Comp. Sys. Biology, 3:89–104, 2005. doi:10.1007/11599128_7.
