A color-avoiding approach to subgraph counting in bounded expansion classes
Abstract
We present an algorithm to count the number of occurrences of a pattern graph as an induced subgraph in a host graph . If belongs to a bounded expansion class, the algorithm runs in linear time. Our design choices are motivated by the need for an approach that can be engineered into a practical implementation for sparse host graphs. Specifically, we introduce a decomposition of the pattern called a counting dag which encodes an order-aware, inclusion-exclusion counting method for . Given such a counting dag and a suitable linear ordering of as input, our algorithm can count the number of times appears as an induced subgraph in in time , where denotes the maximum size of the weakly -reachable sets in . This implies, combined with previous results, an algorithm with running time which only takes and as input. We note that with a small modification, our algorithm can instead use strongly -reachable sets with running time , resulting in an overall complexity of when only given and . Because orderings with small weakly/strongly reachable sets can be computed relatively efficiently in practice [11], our algorithm provides a promising alternative to algorithms using the traditional -treedepth colouring framework [13]. We describe preliminary experimental results from an initial open source implementation which highlight its potential.
Cite
@article{arxiv.2001.05236,
title = {A color-avoiding approach to subgraph counting in bounded expansion classes},
author = {Felix Reidl and Blair D. Sullivan},
journal= {arXiv preprint arXiv:2001.05236},
year = {2020}
}