Skip to main content
QUICK REVIEW

[Paper Review] Compact Neighborhood Index for Subgraph Queries in Massive Graphs

Chemseddine Nabti, T. Mecharnia|arXiv (Cornell University)|Mar 16, 2017
Graph Theory and AlgorithmsComputer Science25 references3 citations
TL;DR

This paper proposes CNI-Match, a novel subgraph isomorphism algorithm that uses a Compact Neighborhood Index (CNI) to encode vertex neighborhoods into integers, enabling efficient, main-memory-independent pruning of the search space. The method reduces intermediate results and outperforms state-of-the-art approaches like CFL-Match by up to 17× in speed and up to 2,343× in memory efficiency on real-world graphs.

ABSTRACT

Subgraph queries also known as subgraph isomorphism search is a fundamental problem in querying graph-like structured data. It consists to enumerate the subgraphs of a data graph that match a query graph. This problem arises in many real-world applications related to query processing or pattern recognition such as computer vision, social network analysis, bioinformatic and big data analytic. Subgraph isomorphism search knows a lot of investigations and solutions mainly because of its importance and use but also because of its NP-completeness. Existing solutions use filtering mechanisms and optimise the order within witch the query vertices are matched on the data vertices to obtain acceptable processing times. However, existing approaches are iterative and generate several intermediate results. They also require that the data graph is loaded in main memory and consequently are not adapted to large graphs that do not fit into memory or are accessed by streams. To tackle this problem, we propose a new approach based on concepts widely different from existing works. Our approach distills the semantic and topological information that surround a vertex into a simple integer. This simple vertex encoding that can be computed and updated incrementally reduces considerably intermediate results and avoid to load the entire data graph into main memory. We evaluate our approach on several real-word datasets. The experimental results show that our approach is efficient and scalable.

Motivation & Objective

  • Address the scalability limitations of existing subgraph isomorphism algorithms that require loading entire data graphs into main memory.
  • Reduce the high computational and memory costs of neighborhood-based filtering in subgraph matching, especially for large or streaming graphs.
  • Develop a lightweight, incremental vertex encoding that captures topological and semantic neighborhood information without storing full neighborhood structures.
  • Enable efficient pruning of the search space early in the matching process using a compact, updatable index.
  • Achieve high performance on both sparse and dense graphs while minimizing intermediate result explosion.

Proposed method

  • Propose a Compact Neighborhood Index (CNI) that maps each vertex’s 1-hop neighborhood into a single integer by combining label frequencies and structural features.
  • Use the CNI to perform global filtering: a data vertex is pruned if its CNI does not match the required neighborhood signature of a query vertex.
  • Design an incremental update mechanism for the CNI that allows efficient maintenance during graph processing or streaming.
  • Integrate the CNI into a recursive backtracking algorithm for subgraph isomorphism, applying pruning before vertex matching begins.
  • Use a composite function $ cni_d(u) = g_2( ext{label}(u), cni(u)) $ to extend the CNI to include vertex labels, enabling richer semantic filtering.
  • Construct a graph-level CNI as $ cni(G) = g_{|V(G)|}(cni_d(v_1), cni_d(v_2), ..., cni_d(v_{|V(G)|})) $ for potential use in graph database indexing.

Experimental results

Research questions

  • RQ1Can a compact, integer-based representation of vertex neighborhoods significantly reduce the search space in subgraph isomorphism without storing full neighborhood structures?
  • RQ2How does the CNI-based filtering compare to existing methods like NLF and MND in terms of pruning power and computational cost?
  • RQ3To what extent can the CNI approach scale on massive graphs that do not fit in main memory?
  • RQ4What is the memory and time overhead of maintaining the CNI compared to traditional indexing structures like CPI in CFL-Match?
  • RQ5Can the CNI be extended to support graph database indexing and support efficient similarity search or query processing on graph collections?

Key findings

  • CNI-Match achieves an average speedup of 12× over CFL-Match on the YEAST dataset and 17× on the HPRD dataset for sparse queries.
  • On the dense HUMAN dataset, CNI-Match is 4× faster than CFL-Match for query sizes where CFL-Match completes within 12 hours.
  • CFL-Match uses up to 2,343× more memory than CNI-Match on the HPRD dataset, and up to 6,000× more on HPRD for small queries.
  • For sparse queries, CNI-Match uses only a fraction of the memory of CFL-Match, with 675× and 2,343× reductions on YEAST and HPRD respectively.
  • The memory usage of CNI-Match grows with query size but remains manageable, as it only stores edges for vertices passing the CNI filter.
  • CNI-Match successfully processes all query sets within the 12-hour limit, while CFL-Match exceeds the time threshold on dense queries, especially for larger sizes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.