Towards Hybrid Methods for Graph Pattern Queries

Foteini Katsarou, Nikos Ntarmos, Peter TriantafillouEDBT/ICDT Workshops 2017

Abstract

The subgraph isomorphism problem remains a fundamental challenge in graph database research. While recent trends have shifted toward "No-Filter Verify" (NFV) approaches—relying on highly optimized matching algorithms—this paper argues that the dismissal of traditional "Filter-Then-Verify" (FTV) methods is premature. We propose a hybrid framework that integrates lightweight structural indexing with state-of-the-art verification algorithms. Preliminary results suggest that this hybrid approach significantly reduces redundant computations, offering a more efficient path for querying massive graph datasets.

1. Introduction

The subgraph querying problem—identifying all occurrences of a query pattern within a large graph database—is a cornerstone of graph-based data management. Because the underlying subgraph isomorphism problem is NP-complete, efficiency is paramount. Historically, the research community has divided strategies into two primary paradigms: Filter-Then-Verify (FTV) and No-Filter Verify (NFV).

FTV methods utilize an index to prune the search space, discarding graphs that cannot possibly contain the query before performing expensive verification. Conversely, NFV methods skip the indexing phase entirely, relying on highly optimized backtracking algorithms to search the database directly. In recent years, the NFV approach has gained dominance, with proponents arguing that modern matching algorithms are sufficiently fast to render indexing obsolete. This paper challenges that assumption, advocating for a synthesis of both techniques to achieve superior performance.

2. The Case for Hybridization

The recent shift toward NFV is driven by the impressive speed of modern subgraph isomorphism tests. However, even the most efficient matching algorithm is orders of magnitude more computationally expensive than a simple index lookup. By abandoning filters, NFV systems often initiate complex searches on graphs that could have been ruled out by basic structural properties, such as vertex counts or label distributions.

We propose a Hybrid Method that leverages the strengths of both paradigms:

  1. Lightweight Filtering: Retaining the "gatekeeper" indices from the FTV school to eliminate obvious non-matches.
  2. High-Performance Verification: Replacing older verification routines with state-of-the-art NFV algorithms developed in recent years.

The core objective is to ensure that the high-performance matching engine only processes graphs with a high probability of success, thereby minimizing wasted CPU cycles on redundant tests.

3. Methodology and Insights

The hybrid approach is built on the realization that the primary cost in subgraph querying is often the initiation of the search. For a significant majority of graphs in a large-scale database, a query will not result in a match. A simple filter can provide a "no-match" result almost instantaneously, whereas even a fast verification algorithm must perform initial setup and state-space exploration.

While specific datasets are not the primary focus of this vision paper, the analysis draws upon established benchmarks in the field, such as chemical compounds (AIDS) and biological networks (PubMed). The findings indicate that the "cost of fast" is still high; the cumulative overhead of running even a "fast" isomorphism test across thousands of non-matching graphs is substantial compared to the cost of maintaining a lightweight index.

4. Preliminary Results

Initial evaluations demonstrate that the hybrid approach provides "very significant" speedups compared to using NFV methods alone. By reducing redundant isomorphism tests, the hybrid system remains highly competitive against both pure FTV and pure NFV categories. This efficiency is particularly critical as we move toward databases with billions of nodes and edges, where the overhead of unnecessary searches becomes a major bottleneck.

5. Conclusion and Future Work

This paper serves as a sanity check for the graph research community. The dismissal of filtering techniques in favor of pure matching algorithms overlooks the inherent efficiency of structural pruning. We believe the most performant future systems will be those that integrate these styles rather than choosing one over the other.

Future research will focus on:

  • Optimal Pairing: Investigating which specific indexing techniques pair most efficiently with which matching algorithms.
  • Scalability: Further testing how these hybrid methods scale as graph databases grow into the billions of nodes and edges.
  • Algorithm Refinement: Developing new "hybrid-native" algorithms designed from the ground up to be integrated, rather than simply stitching existing components together.

Summary updated

BibTeX
@inproceedings{katsarou2017towards,
  author = {Foteini Katsarou and Nikos Ntarmos and Peter Triantafillou},
  title = {{Towards Hybrid Methods for Graph Pattern Queries}},
  booktitle = {EDBT/ICDT Workshops},
  year = {2017},
}
Figure