Homomorphisms Are a Good Basis for Counting Small Subgraphs
arXiv:1705.01595 · doi:10.1145/3055399.3055502
Abstract
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 , the number of -copies (induced or not) in an input graph , and the number of homomorphisms from to . Using the framework of graph motif parameters, we obtain faster algorithms for counting subgraph copies of fixed graphs in host graphs : For graphs on edges, we show how to count subgraph copies of in time by a surprisingly simple algorithm. This improves upon previously known running times, such as time for -edge matchings or time for -cycles. Furthermore, we prove a general complexity dichotomy for evaluating graph motif parameters: Given a class of such parameters, we consider the problem of evaluating on input graphs , parameterized by the number of induced subgraphs that depends upon. For every recursively enumerable class , 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 and , where is from a fixed class , we want to count color-preserving -copies in . 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.
An extended abstract of this paper appears at STOC 2017
References in corpus (4)
Cited by in corpus (11)
- Graph Neural Networks with Local Graph Parameters
- Provably and Efficiently Approximating Near-cliques using the Turán Shadow: PEANUTS
- On Weisfeiler-Leman Invariance: Subgraph Counts and Related Graph Properties
- Four short stories on surprising algorithmic uses of treewidth
- Two dichotomies for model-checking in multi-layer structures
- Signatures of graphs for bicommutative Hopf algebras
- Homomorphism Tensors and Linear Equations
- Counting Homomorphisms to -minor-free Graphs, modulo 2
- Parameterized Valiant's Classes
- Number of Connected Components in a Graph: Estimation via Counting Patterns
- Counting Answers to Unions of Conjunctive Queries: Natural Tractability Criteria and Meta-Complexity