Abstract
Given a query graph, top-k subgraph matching finds up to $k$ matches in a data graph with the highest scores according to a user-defined scoring function. It has wide applications across many fields, including knowledge graphs and social networks. Due to the enormous search space, existing methods are not efficient enough on large graphs. In this paper, we propose PTAB, an efficient serial algorithm for top-k subgraph matching. It traverses an efficiently pruned search space by topology-aware subspace score upper bounds computed from a novel hop index, which stores the range of node properties in a constrained multi-hop neighborhood of each node. Additionally, PTAB integrates a cost-aware root selection strategy, which chooses query nodes leading to a search process that utilizes the pruning power of the hop index as much as possible. Furthermore, we use a novel edge-cut strategy to handle general query graphs with cycles. We also extend PTAB to a parallel version, PTABP, which further improves performance via multi-threading and enhanced pruning techniques. Experimental results on real and synthetic datasets demonstrate that our methods outperform existing methods.
Funding Information
  • New Generation Artificial Intelligence-National Science and Technology Major Project (2025ZD0123305)
  • National Natural Science Foundation of China (62532001)