Introduction
Subgraph isomorphism—the task of finding all instances of a query graph within a larger data graph—is a fundamental NP-hard problem. It underpins critical applications in computational biology, social network analysis, and database querying. Despite its importance, the field has been clouded by inconsistent performance evaluations and hidden algorithmic errors in established literature.
Addressing Inconsistencies and Errors
Previous benchmarks often compared algorithms implemented in different languages or tested on varying hardware, making fair comparisons impossible. More concerningly, this research identified significant logical flaws in established algorithms:
- VF3: Pruning rules originally designed for induced subgraphs were incorrectly applied to standard embeddings, leading to incorrect results.
- BoostISO: The "dynamic candidate loading" (DCL) and "query-dependent equivalence" (QDE) techniques were found to be mathematically unsound, causing the algorithm to either miss valid matches or generate invalid ones.
To resolve these issues, the authors re-implemented seven state-of-the-art algorithms—QuickSI, GraphQL, TurboISO, CFL-Match, VF3, CECI, and DAF—within a unified C++ framework on a single Linux platform.
Modern Algorithmic Approaches and Their Overhead
Recent advancements in subgraph matching have focused on complex filtering and indexing strategies. Techniques such as query decomposition into core and leaf sets, combined with structures like the Candidate Path Index (CPI), aim to prune the search space aggressively.
However, the study reveals a significant trade-off: the computational overhead of maintaining these indices often outweighs their pruning benefits. Surprisingly, older, lightweight tree-search algorithms like QuickSI and VF3 frequently outperform newer, more complex methods in both execution speed and memory efficiency. The heavy filtering of newer methods introduces a cost that frequently exceeds the savings from reduced search space.
Experimental Evaluation and Results
The algorithms were tested against four real-world datasets: Yeast (sparse biological), Human (dense biological), Email (sparse social), and DBLP (sparse citation).
Performance and Memory
While no single algorithm dominated all scenarios, VF3, QuickSI, and DAF emerged as the top three performers. Memory consumption was directly proportional to index complexity; DAF was the most memory-intensive (e.g., reaching 83MB on specific Human dataset queries), while QuickSI and GraphQL remained highly efficient.
The Role of BoostISO
BoostISO, a preprocessing technique for graph compression, showed mixed results. On the dense Human dataset, it achieved a 59% compression ratio and a 5x speedup for QuickSI. Conversely, on sparse datasets like Yeast (10% compression), the overhead of checking vertex equivalence made BoostISO-enhanced variants slower than their standard counterparts.
Conclusion
The findings suggest that the current state-of-the-art is caught between pruning power and overhead. While complex indexing can be powerful for dense graphs, the efficiency of simpler tree-search methods remains formidable. Future research should focus on adaptive heuristics that can dynamically choose between lightweight search and heavy indexing based on graph density and query characteristics.
Summary updated