Indexing Query Graphs to Speedup Graph Query Processing

Jing Wang, Nikos Ntarmos, Peter TriantafillouEDBT 2016

Abstract

Graph query processing, specifically subgraph and supergraph matching, is hindered by the computational intensity of subgraph isomorphism tests. Traditional "filter-then-verify" approaches often leave the verification step as a massive bottleneck. This paper introduces iGQ (Indexing Query Graphs), a framework that leverages historical query results to optimize future processing. By identifying relationships between new and previously executed queries, iGQ reduces the number of expensive NP-Complete tests by up to 11x with minimal memory overhead.

Introduction

Graph analytics is essential for uncovering patterns in complex datasets, ranging from molecular biology to social networks. However, the core operation—subgraph isomorphism—is NP-Complete. Most modern systems employ a "filter-then-verify" paradigm: an index filters the dataset to a candidate set, which is then verified through exact matching.

Despite sophisticated filtering, the verification phase remains the primary bottleneck. As datasets grow, verification can account for nearly 100% of total processing time. Current systems treat each query in isolation, ignoring the valuable knowledge gained from previous executions. iGQ addresses this by "mining" the query stream to bypass redundant computations.

Verification time dominates total processing across different datasets and indexing methods.

The iGQ Framework

iGQ is designed as a plug-and-play layer that sits atop existing graph indexing methods like GGSX, Grapes, or CT-Index. Its primary innovation is the maintenance of two internal structures: $I_{sub}$ and $I_{super}$.

Dual Query Indexing

The framework exploits hierarchical relationships within query streams:

  • Supergraph Relationships ($I_{super}$): If a new query $g$ is a supergraph of a previously executed query $G$, then $g$ can only be found in graphs that already contained $G$. This allows the system to prune the candidate set significantly before verification.
  • Subgraph Relationships ($I_{sub}$): Conversely, if $g$ is a subgraph of a past query $G$, any graph containing $G$ must also contain $g$. These results can be moved directly to the final answer set without further testing.
The iGQ SUPER index workflow demonstrates how previous query results prune the candidate set for new supergraph queries.

Intelligent Replacement Policy

To manage finite cache space, iGQ employs a "Graph Utility" ($U(g)$) function. Unlike standard LRU policies, $U(g)$ evaluates the probability of a future hit, the number of isomorphism tests saved, and the specific computational cost of those tests, ensuring the most "valuable" queries remain indexed.

Evaluation and Results

The researchers tested iGQ across diverse datasets, including AIDS (molecular structures), PDBS (biological sequences), PPI (dense interaction networks), and large synthetic graphs.

Key findings include:

  • Efficiency: iGQ achieved a 5x to 11x reduction in subgraph isomorphism tests.
  • Speed: In dense datasets like PPI, query times were reduced by several orders of magnitude, particularly under skewed query distributions.
  • Low Overhead: The additional index adds less than 1% space overhead to the base system.
  • Generality: The framework consistently improved performance across all three state-of-the-art base indexes tested.

Conclusion

iGQ demonstrates that mining query history is a powerful and efficient alternative to traditional data-centric indexing. By exploiting the natural hierarchy and locality of real-world query streams, iGQ effectively mitigates the NP-Complete bottleneck of graph matching. Future work may extend these principles to approximate matching and streaming graph environments.

Summary updated

BibTeX
@inproceedings{wang2016indexing,
  author = {Jing Wang and Nikos Ntarmos and Peter Triantafillou},
  title = {{Indexing Query Graphs to Speedup Graph Query Processing}},
  booktitle = {EDBT},
  year = {2016},
  doi = {10.5441/002/edbt.2016.07},
}
Figure