Trade-offs Computing Minimum Hub Cover toward Optimized Graph Query Processing

Belma Yelbay, S. Ilker Birbil, Kerem Bülbül, Hasan M. JamilarXiv 2013

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.

Query graphs $q_1, q_2$ and data graph $d$ illustrating the complexity of subgraph isomorphism.

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.

Examples of hubs identified in query and data graphs, demonstrating how central nodes cover local neighborhoods.

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

Abstract

As techniques for graph query processing mature, the need for optimization is increasingly becoming an imperative. Indices are one of the key ingredients toward efficient query processing strategies via cost-based optimization. Due to the apparent absence of a common representation model, it is difficult to make a focused effort toward developing access structures, metrics to evaluate query costs, and choose alternatives. In this context, recent interests in covering-based graph matching appears to be a promising direction of research. In this paper, our goal is to formally introduce a new graph representation model, called Minimum Hub Cover, and demonstrate that this representation offers interesting strategic advantages, facilitates construction of candidate graphs from graph fragments, and helps leverage indices in novel ways for query optimization. However, similar to other covering problems, minimum hub cover is NP-hard, and thus is a natural candidate for optimization. We claim that computing the minimum hub cover leads to substantial cost reduction for graph query processing. We present a computational characterization of minimum hub cover based on integer programming to substantiate our claim and investigate its computational cost on various graph types.
BibTeX
@misc{yelbay2013trade,
  author = {Belma Yelbay and S. Ilker Birbil and Kerem Bülbül and Hasan M. Jamil},
  title = {{Trade-offs Computing Minimum Hub Cover toward Optimized Graph Query Processing}},
  year = {2013},
  eprint = {1311.1626},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1311.1626},
}
Figure