Homomorphisms are a good basis for counting small subgraphs

We introduce graph motif parameters, a class of graph parameters that depend only on the frequencies of constant-size induced subgraphs. Classical works by Lovász show that many interesting quantities have this form, including, for fixed graphs H, the number of H-copies (induced or not) in an input graph G, and the number of homomorphisms from H to G. We use the framework of graph motif parameters to obtain faster algorithms for counting subgraph copies of fixed graphs H in host graphs G. More precisely, for graphs H on k edges, we show how to count subgraph copies of H in time kO(k)· n0.174k + o(k) by a surprisingly simple algorithm. This improves upon previously known running times, such as O(n0.91k + c) time for k-edge matchings or O(n0.46k + c) time for k-cycles. Furthermore, we prove a general complexity dichotomy for evaluating graph motif parameters: Given a class C of such parameters, we consider the problem of evaluating f ε C on input graphs G, parameterized by the number of induced subgraphs that f depends upon. For every recursively enumerable class C, we prove the above problem to be either FPT or #W[1]-hard, with an explicit dichotomy criterion. This allows us to recover known dichotomies for counting subgraphs, induced subgraphs, and homomorphisms in a uniform and simplified way, together with improved lower bounds. Finally, we extend graph motif parameters to colored subgraphs and prove a complexity trichotomy: For vertex-colored graphs H and G, where H is from a fixed class of graphs, we want to count color-preserving H-copies in G. We show that this problem is either polynomial-time solvable or FPT or #W[1]-hard, and that the FPT cases indeed need FPT time under reasonable assumptions.

[1]  Julian R. Ullmann,et al.  An Algorithm for Subgraph Isomorphism , 1976, J. ACM.

[2]  Svatopluk Poljak,et al.  On the complexity of the subgraph problem , 1985 .

[3]  Sebastian Wernicke,et al.  Efficient Detection of Network Motifs , 2006, IEEE/ACM Transactions on Computational Biology and Bioinformatics.

[4]  Kitty Meeks,et al.  The challenges of unbounded treewidth in parameterised subgraph counting problems , 2014, Discret. Appl. Math..

[5]  Stephen A. Cook,et al.  The complexity of theorem-proving procedures , 1971, STOC.

[6]  Yijia Chen,et al.  The Hardness of Embedding Grids and Walls , 2017, WG.

[7]  Jörg Flum,et al.  Parameterized Complexity Theory (Texts in Theoretical Computer Science. An EATCS Series) , 2006 .

[8]  Friedrich Eisenbrand,et al.  On the complexity of fixed parameter clique and dominating set , 2004, Theor. Comput. Sci..

[9]  Dániel Marx,et al.  Exponential Time Complexity of the Permanent and the Tutte Polynomial , 2010, TALG.

[10]  Fedor V. Fomin,et al.  Treewidth computation and extremal combinatorics , 2008, Comb..

[11]  Peter Jonsson,et al.  The complexity of counting homomorphisms seen from the other side , 2004, Theor. Comput. Sci..

[12]  François Le Gall,et al.  Powers of tensors and fast matrix multiplication , 2014, ISSAC.

[13]  Andreas Björklund,et al.  Counting Paths and Packings in Halves , 2009, ESA.

[14]  Falk Schreiber,et al.  Frequency Concepts and Pattern Detection for the Analysis of Motifs in Networks , 2005, Trans. Comp. Sys. Biology.

[15]  Martin Grohe,et al.  The complexity of homomorphism and constraint satisfaction problems seen from the other side , 2003, 44th Annual IEEE Symposium on Foundations of Computer Science, 2003. Proceedings..

[16]  Maria J. Serna,et al.  Counting H-colorings of partial k-trees , 2001, Theor. Comput. Sci..

[17]  Maria J. Serna,et al.  Counting H-Colorings of Partial k-Trees , 2001, COCOON.

[18]  Mark Jerrum,et al.  Some Hard Families of Parameterized Counting Problems , 2013, ACM Trans. Comput. Theory.

[19]  Dániel Marx,et al.  Can you beat treewidth? , 2007, 48th Annual IEEE Symposium on Foundations of Computer Science (FOCS'07).

[20]  Ryan Williams,et al.  Finding, minimizing, and counting weighted subgraphs , 2009, STOC '09.

[21]  Joshua A. Grochow,et al.  Network Motif Discovery Using Subgraph Enumeration and Symmetry-Breaking , 2007, RECOMB.

[22]  Andreas Björklund,et al.  Counting Thin Subgraphs via Packings Faster than Meet-in-the-Middle Time , 2013, SODA.

[23]  Radu Curticapean,et al.  Counting Matchings of Size k Is W[1]-Hard , 2013, ICALP.

[24]  Dániel Marx,et al.  Characterizing the easy-to-find subgraphs from the viewpoint of polynomial-time algorithms, kernels, and Turing kernels , 2015, SODA.

[25]  Thorsten Strufe,et al.  StreaM - A Stream-Based Algorithm for Counting Motifs in Dynamic Graphs , 2015, AlCoB.

[26]  Mong-Li Lee,et al.  NeMoFinder: dissecting genome-wide protein-protein interactions with meso-scale network motifs , 2006, KDD '06.

[27]  Virginia Vassilevska Williams,et al.  Multiplying matrices faster than coppersmith-winograd , 2012, STOC '12.

[28]  S. Shen-Orr,et al.  Networks Network Motifs : Simple Building Blocks of Complex , 2002 .

[29]  V. Sós,et al.  Counting Graph Homomorphisms , 2006 .

[30]  Bingkai Lin,et al.  The Parameterized Complexity of k-Biclique , 2014, SODA.

[31]  F. Schreiber,et al.  MODA: an efficient algorithm for network motif discovery in biological networks. , 2009, Genes & genetic systems.

[32]  Dániel Marx,et al.  Complexity of Counting Subgraphs: Only the Boundedness of the Vertex-Cover Number Counts , 2014, 2014 IEEE 55th Annual Symposium on Foundations of Computer Science.

[33]  Alex D. Scott,et al.  Linear-programming design and analysis of fast algorithms for Max 2-CSP , 2006, Discret. Optim..

[34]  Andrzej Lingas,et al.  Counting and Detecting Small Subgraphs via Equations , 2013, SIAM J. Discret. Math..

[35]  Noga Alon,et al.  Finding and counting given length cycles , 1997, Algorithmica.

[36]  Sahar Asadi,et al.  Kavosh: a new algorithm for finding network motifs , 2009, BMC Bioinformatics.

[37]  Markus Bläser,et al.  Weighted Counting of k-Matchings Is #W[1]-Hard , 2012, IPEC.

[38]  Yijia Chen,et al.  Understanding the Complexity of Induced Subgraph Isomorphisms , 2008, ICALP.

[39]  Dieter Kratsch,et al.  Finding and Counting Small Induced Subgraphs Efficiently , 1995, WG.

[40]  Hans L. Bodlaender A linear time algorithm for finding tree-decompositions of small treewidth , 1993, STOC '93.

[41]  L. Lovász Operations with structures , 1967 .

[42]  Marc Roth,et al.  Parameterized Counting of Trees, Forests and Matroid Bases , 2016, CSR.

[43]  Amir Abboud,et al.  If the Current Clique Algorithms are Optimal, So is Valiant's Parser , 2015, 2015 IEEE 56th Annual Symposium on Foundations of Computer Science.

[44]  Alon Itai,et al.  Finding a minimum circuit in a graph , 1977, STOC '77.

[45]  Noga Alon,et al.  Biomolecular network motif counting and discovery by color coding , 2008, ISMB.

[46]  Leslie G. Valiant,et al.  The Complexity of Computing the Permanent , 1979, Theor. Comput. Sci..

[47]  S. Shen-Orr,et al.  Network motifs: simple building blocks of complex networks. , 2002, Science.

[48]  Ryan Williams,et al.  LIMITS and Applications of Group Algebras for Parameterized Problems , 2009, ACM Trans. Algorithms.

[49]  Russell Impagliazzo,et al.  On the Complexity of k-SAT , 2001, J. Comput. Syst. Sci..

[50]  Iyad A. Kanj,et al.  Tight lower bounds for certain parameterized NP-hard problems , 2004, Proceedings. 19th IEEE Annual Conference on Computational Complexity, 2004..

[51]  Uri Alon,et al.  Efficient sampling algorithm for estimating subgraph concentrations and detecting network motifs , 2004, Bioinform..

[52]  Radu Curticapean Block Interpolation: A Framework for Tight Exponential-Time Counting Complexity , 2015, ICALP.

[53]  Ge Xia,et al.  Tight lower bounds for certain parameterized NP-hard problems , 2004, Proceedings. 19th IEEE Annual Conference on Computational Complexity, 2004..

[54]  Mark Jerrum,et al.  The parameterised complexity of counting connected subgraphs and graph motifs , 2013, J. Comput. Syst. Sci..

[55]  Mark Jerrum,et al.  The parameterised complexity of counting even and odd induced subgraphs , 2014, Comb..

[56]  M. Bálek,et al.  Large Networks and Graph Limits , 2022 .

[57]  Zdenek Dvorak,et al.  Strongly Sublinear Separators and Polynomial Expansion , 2015, SIAM J. Discret. Math..