引用本文:陈迪,袁野,潘雅妮,王国仁.大图数据的统一查询处理机制.软件学报,2026,37(5):2235-2256
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 527次   下载 564 本文二维码信息
码上扫一扫!
分享到: 微信 更多
大图数据的统一查询处理机制
陈迪1, 袁野2, 潘雅妮1, 王国仁2
1.东北大学 计算机科学与工程学院, 辽宁 沈阳 110169;2.北京理工大学 计算机学院, 北京 100081
摘要:
现实世界中许多应用场景都可以用图数据表示, 图上的查询也具有广泛的应用, 如可达、最短路径、关键字、图匹配、PageRank、SimRank、k-core、k-truss和Clique等. 针对特定的查询问题, 目前的研究方法可概括为: 提出相应的查询处理算法, 并构建索引结构来加速查询. 然而, 现实应用中需求的多样化以及图数据规模爆炸式的增长为该研究方法带来了两方面挑战: 第一, 同一个图数据在应用中会涉及多种查询, 但针对不同查询问题的处理机制和索引结构均不相同, 因此在设计图数据库时需构建多个索引和相应的查询算法; 第二, 索引的规模通常比原图数据的规模大, 多个索引同时存在会占用大量的系统空间, 导致图数据库的性能急剧下降, 不能被真正地应用. 为应对上述挑战, 提出一种统一的查询处理机制, 即为大图数据构建统一且高效的索引结构, 并基于统一索引结构设计可达、最短路径、关键字和图匹配这4种查询处理算法. 为构建统一索引结构, 对大图数据进行划分, 并根据可达、最短路径、关键字和图匹配这4种查询的特点提取出图数据中的重要顶点, 该统一索引结构规模比图数据规模小, 并且能高效地支持上述4种查询. 最后, 通过在4组真实数据上的实验验证了统一索引结构和4种查询处理算法的高效性和扩展性.
关键词:  统一索引  可达查询  最短路径查询  关键字查询  图匹配查询
DOI:10.13328/j.cnki.jos.007493
分类号:TP311
基金项目:国家重点研发计划(2022YFB2702100); 国家自然科学基金(62225203, U21A20516)
Unified Query Processing Mechanism over Large-scale Graph Data
CHEN Di1, YUAN Ye2, PAN Ya-Ni1, WANG Guo-Ren2
1.School of Computer Science and Engineering, Northeastern University, Shenyang 110169, China;2.School of Computer Science and Technology, Beijing Institute of Technology, Beijing 100081, China
Abstract:
Graph data can represent a wide range of real-world application scenarios, and query processing over graphs plays a crucial role in various tasks, such as reachability, shortest path, keyword search, graph pattern matching, PageRank, SimRank, k-core, k-truss, and Clique. For specific query problems, existing approaches typically propose corresponding query processing algorithms and build index structures to speed up the query. However, the diversification of application demands and the explosive growth in graph data scale present two major challenges to this methodology. First, a single graph dataset may involve multiple types of queries in practice, yet each query type often requires distinct processing mechanisms and index structures. Consequently, multiple indexes and corresponding query algorithms need to be constructed when designing a graph database. Second, index structures are often larger than the original graph data, and maintaining multiple indexes simultaneously can lead to significant space overhead, resulting in sharp performance degradation and limited practical applicability. To address these challenges, this study proposes a unified query processing mechanism. A unified and efficient index structure is constructed for large-scale graph data, upon which four query processing algorithms are designed, supporting reachability, shortest path, keyword search, and graph pattern matching. To build the unified index structure, the graph data is partitioned, and important vertices are extracted based on the characteristics of the four queries. The resulting unified index is smaller in size than the original graph and efficiently supports all four queries. Finally, the effectiveness and scalability of the unified index and the proposed algorithms are validated through experiments on four real-world datasets.
Key words:  unified index  reachable query  shortest path query  keyword search  graph matching query