Mathematical programming models based on hub covers in graph query processing

Belma Yelbay, Ş. İlker Birbil, Kerem BülbülSabanci 2017 · OpenAlex

Abstract

Graph matching, or subgraph isomorphism, is a fundamental yet computationally expensive operation in graph database management. This paper introduces novel mathematical programming models to solve the Minimum Hub Cover (MHC) problem, a strategy designed to accelerate these complex queries. By representing large graphs through a small subset of "hub" vertices and optimizing the sequence in which they are searched, the authors provide a framework that significantly reduces computational overhead. The study explores various formulations, including Binary Integer Programming (BIP) and Quadratic Integer Programming (QIP), alongside relaxations and rounding heuristics that demonstrate high efficiency across diverse graph datasets.

The Challenge of Graph Query Processing

Graph databases are essential for modeling complex systems such as social networks, protein interactions, and web links. However, searching these databases is notoriously difficult. The core operation, subgraph isomorphism—finding instances of a small query graph within a larger data graph—is NP-hard. As graphs grow in size and complexity, the time required for matching increases exponentially.

Figure 5: Illustration of query graphs (q1, q2) and their potential matches within a larger data graph (d).

To mitigate this, researchers utilize "hub covers." A hub cover is a small set of vertices that "cover" all edges and their immediate neighborhoods. If the hubs can be matched first, the rest of the query graph can be reconstructed quickly. This approach faces two primary hurdles: finding the smallest possible hub cover is itself an NP-hard optimization problem, and the specific order in which hubs are matched (the query plan) significantly impacts performance.

Methodology: Optimization and Relaxations

The authors tackle the MHC problem using advanced mathematical programming techniques. They introduce new BIP and QIP models and define a complementary problem known as the Maximum Triangular Set (MTS). To handle the computational difficulty of integer problems, they employ Linear Programming (LP) and Semidefinite Programming (SDP) relaxations. SDP, in particular, maps the problem into a higher-dimensional space of symmetric matrices to find tighter bounds.

To convert the fractional solutions from these relaxations into discrete vertex selections, the paper proposes two rounding heuristics:

  1. PRMTS (Primal Rounding for MTS): Based on the Maximum Triangular Set formulation.
  2. RSDP (Rounding for SDP): Leveraging the results of the SDP relaxation.

Furthermore, the authors propose an integrated shortest-path formulation. This innovative model simultaneously identifies the minimum hub cover and determines the optimal matching sequence to minimize the total query cost.

Experimental Evaluation and Datasets

The proposed models were evaluated on 210 graphs across seven distinct classes, ranging from 20 to 1,000 vertices. These classes include random graphs, scale-free graphs (mimicking real-world social networks), and planar graphs.

Figure 2: Molecular graphs, an example of bounded valence graphs used in the study's evaluation.

The inclusion of bounded valence graphs is particularly relevant for molecular modeling, where vertices (atoms) have a fixed number of neighbors (bonds). This diversity ensures that the findings are applicable to a wide range of real-world graph database scenarios.

Key Insights and Results

The study yielded several critical insights into the behavior of hub cover optimization:

  • MHC as a Generalization: The authors demonstrated that the well-known Minimum Vertex Cover problem is a special case of MHC where the neighborhood size is zero.
  • Effectiveness of MTS: The PRMTS rounding algorithm outperformed standard set-covering methods, highlighting the value of the MTS formulation.
  • Importance of Post-processing: A dedicated post-processing step to prune redundant vertices significantly improved the success rate of the algorithms. For instance, the SDP rounding's ability to find an optimal solution rose from 20% to 46% after post-processing.
  • Query Planning: The results emphasize that finding the smallest cover is only half the battle; the sequence of joins (the query plan) is a massive factor in real-world response times.

In terms of performance, the LP relaxation generally provided tighter lower bounds than SDP, with gaps under 10% in nearly 90% of cases. With post-processing, the MTS-based method reached optimality in 55% of the test instances.

Conclusion and Future Directions

While the mathematical programming approach shows great promise, scalability remains a challenge. Current SDP solvers are limited to small-to-medium instances. Future work will focus on utilizing parallel implementations, such as SDPARA, to tackle large-scale MHC instances involving millions of constraints. Additionally, the authors aim to further refine the integrated shortest-path formulation to better balance hub selection with query plan optimization.

Summary updated

BibTeX
@inproceedings{yelbay2017mathematical,
  author = {Belma Yelbay and Ş. İlker Birbil and Kerem Bülbül and Ilker Birbil},
  title = {{Mathematical programming models based on hub covers in graph query processing}},
  booktitle = {Sabanci},
  year = {2017},
}
Figure