An efficient algorithm for answering graph reachability queries

被引:58
|
作者
Chen, Yangjun [1 ]
Chen, Yibin [1 ]
机构
[1] Univ Winnipeg, Depl Appl Comp Sci, 515 Portage Ave, Winnipeg, MB R3B 2E9, Canada
来源
2008 IEEE 24TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, VOLS 1-3 | 2008年
关键词
TRANSITIVE CLOSURE; TIME;
D O I
10.1109/ICDE.2008.4497498
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Given a directed graph G, to check whether a node v is reachable from another node u through a path is often required. In a database system, such an operation is called a recursion computation or reachability checking and not efficiently supported. The reason for this is that the space to store the whole transitive closure of G is prohibitively high. In this paper, we address this issue and propose an O(n(2) + bn root b) time algorithm to decompose a directed acyclic graph (DAG) into a minimized set of disjoint chains to facilitate reachability checking, where n is the number of the nodes and b is the DAG's width, defined to be the size of a largest node subset U of the DAG such that for every pair of nodes u, v epsilon U, there does not exist a path from u to v or from v to u. Using this algorithm, we are able to label a graph in O(be) time and store all the labels in O(bn) space with O(logb) reachability checking time, where e is the number of the edges of the DAG The method can also be extended to handle cyclic directed graphs. Experiments have been performed, showing that our method is promising.
引用
收藏
页码:893 / +
页数:2
相关论文
共 50 条
  • [21] Answering Reachability Queries on Incrementally Updated Graphs by Hierarchical Labeling Schema
    Tak-Lam Wong
    Journal of Computer Science and Technology, 2016, 31 : 381 - 399
  • [22] Answering Reachability Queries on Incrementally Updated Graphs by Hierarchical Labeling Schema
    Wong, Tak-Lam
    JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2016, 31 (02) : 381 - 399
  • [23] Fast Reachability Queries Answering based on RCN Reduction (Extended abstract)
    Zhou, Junfeng
    Yu, Jeffrey Xu
    Qiu, Yaxian
    Tang, Xian
    Chen, Ziyang
    Du, Ming
    2022 IEEE 38TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2022), 2022, : 1543 - 1544
  • [24] Adding Regular Expressions to Graph Reachability and Pattern Queries
    Fan, Wenfei
    Li, Jianzhong
    Ma, Shuai
    Tang, Nan
    Wu, Yinghui
    IEEE 27TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2011), 2011, : 39 - 50
  • [25] Efficiently Answering Span-Reachability Queries in Large Temporal Graphs
    Wen, Dong
    Huang, Yilun
    Zhang, Ying
    Qin, Lu
    Zhang, Wenjie
    Lin, Xuemin
    2020 IEEE 36TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2020), 2020, : 1153 - 1164
  • [26] Adding regular expressions to graph reachability and pattern queries
    Wenfei Fan
    Jianzhong Li
    Shuai Ma
    Nan Tang
    Yinghui Wu
    Frontiers of Computer Science, 2012, 6 : 313 - 338
  • [27] DBL: Efficient Reachability Queries on Dynamic Graphs
    Lyu, Qiuyi
    Li, Yuchen
    He, Bingsheng
    Gong, Bin
    DATABASE SYSTEMS FOR ADVANCED APPLICATIONS (DASFAA 2021), PT II, 2021, 12682 : 761 - 777
  • [28] PAGE: Answering Graph Pattern Queries via Knowledge Graph Embedding
    Hong, Sanghyun
    Park, Noseong
    Chakraborty, Tanmoy
    Kang, Hyunjoong
    Kwon, Soonhyun
    BIG DATA - BIGDATA 2018, 2018, 10968 : 87 - 99
  • [29] Answering Top-k Graph Similarity Queries in Graph Databases
    Zhu, Yuanyuan
    Qin, Lu
    Yu, Jeffrey Xu
    Cheng, Hong
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2020, 32 (08) : 1459 - 1474
  • [30] HyperBit: A temporal graph store for fast answering queries
    Zang, Shaoqi
    Han, Sheng
    Yuan, Pingpeng
    Shi, Xuanhua
    Jin, Hai
    DATA & KNOWLEDGE ENGINEERING, 2023, 144