Introduction
Querying graph databases involves identifying specific patterns, or query graphs, within a larger data graph. This process is fundamentally a subgraph isomorphism problem, which is NP-complete and computationally intensive. Existing indexing solutions often rely on specific structures like paths, which can be difficult to maintain and lack generality. This paper introduces the Minimum Hub Cover (MHC), a novel graph representation model that uses "hubs"—nodes and their immediate neighborhoods—as the fundamental unit for indexing. By identifying the smallest set of hubs that covers all edges, the authors provide a framework for cost-based query optimization that significantly reduces the search space.
The Hub Concept and MHC
A hub is defined not just as a node, but as a "graphlet" consisting of a central vertex, its neighbors, and all edges between those neighbors (triangles). This approach localizes adjacency information. The Minimum Hub Cover (MHC) is the smallest set of vertices such that every edge in the graph is covered by at least one hub.
A critical insight of this model is that "triangles matter." In a standard vertex cover, an edge is covered by its endpoints. In a hub cover, an edge can be covered by a "witness" node if that node forms a triangle with the edge's endpoints. This property often results in an MHC that is significantly smaller than a standard vertex cover, particularly in dense graphs.
Methodology
Finding the MHC is NP-hard, proven by reduction from the Minimum Vertex Cover problem. The authors utilize Integer Programming (IP) with the IBM ILOG CPLEX solver to find exact solutions for smaller graphs. For larger datasets, they evaluate several heuristics:
- GR1 & GR2: Greedy approximation algorithms.
- MBH (Mathematical Programming-based Heuristic): Utilizes dual information from LP relaxation.
- LSLP: A local search heuristic.
Furthermore, they propose a Graphlet Ordering algorithm for query planning. By calculating the "selectivity" of different hubs (the rarity of a specific hub structure in the data), the system can order query execution to prune the search space as early as possible.
Experimental Evaluation
The approach was evaluated using a dataset of 830 graph instances, including benchmark, synthetic (random, bounded valence, meshes), and scale-free graphs.
Key Results
- Computational Feasibility: While MHC is NP-hard, optimal solutions for graphs with 200–600 nodes were found within reasonable timeframes. However, computational cost grows exponentially with graph density.
- Heuristic Performance: The MBH and LSLP heuristics provided excellent trade-offs, yielding solutions close to the optimal MHC much faster than exact solvers.
- Scale-Free Advantage: The greedy GR1 algorithm performed exceptionally well on scale-free graphs, which are common in real-world social and biological networks. These graphs are naturally dominated by a few massive hubs, making them highly amenable to this indexing strategy.
Conclusion
By representing a graph as a set of hubs, the authors decouple index selection from specific query expressions. This abstraction allows query processors to use standard database indices to find candidate hubs without requiring global graph structure knowledge upfront. While calculating the MHC is a significant pre-processing step, the resulting selectivity-based pruning offers a powerful mechanism for optimizing complex graph queries. Future work includes dynamic MHC adjustments and integration with distributed processing frameworks.
Summary updated