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.
Connections
Explore this paper’s authors, topics and related work.
Building this map preview
BZPEER is loading the nearby papers, people, topics and institutions for this page.
Reviews 0
Write a review
No reviews yet.
Discussion 0
Add a comment
No comments yet.