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 条
  • [31] A Bottom-Up Algorithm for Answering Context-Free Path Queries in Graph Databases
    Santos, Fred C.
    Costa, Umberto S.
    Musicante, Martin A.
    WEB ENGINEERING, ICWE 2018, 2018, 10845 : 225 - 233
  • [32] Close Dominance Graph: An Efficient Framework for Answering Continuous Top-k Dominating Queries
    Santoso, Bagus Jati
    Chiu, Ge-Ming
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2014, 26 (08) : 1853 - 1865
  • [33] Answering reachability and K-reach queries on large graphs with label constraints
    You Peng
    Xuemin Lin
    Ying Zhang
    Wenjie Zhang
    Lu Qin
    The VLDB Journal, 2022, 31 : 101 - 127
  • [34] Answering reachability and K-reach queries on large graphs with label constraints
    Peng, You
    Lin, Xuemin
    Zhang, Ying
    Zhang, Wenjie
    Qin, Lu
    VLDB JOURNAL, 2022, 31 (01): : 101 - 127
  • [35] Efficient Answering of Historical What-if Queries
    Campbell, Felix S.
    Arab, Bahareh Sadat
    Glavic, Boris
    PROCEEDINGS OF THE 2022 INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA (SIGMOD '22), 2022, : 1556 - 1569
  • [36] An algorithm for answering queries efficiently using views
    Mitra, P
    PROCEEDINGS OF THE 12TH AUSTRALASIAN DATABASE CONFERENCE, ADC 2001, 2001, 23 (02): : 99 - 106
  • [37] EFFICIENT ALGORITHMS FOR ANSWERING QUERIES WITH UNSORTED MULTILISTS
    CLAYBROOK, BG
    YANG, CS
    INFORMATION SYSTEMS, 1978, 3 (02) : 93 - 97
  • [38] An Efficient Algorithm of Star Subgraph Queries on Urban Traffic Knowledge Graph
    Tao Sun
    Jianqiu Xu
    Caiping Hu
    Data Science and Engineering, 2022, 7 : 383 - 401
  • [39] An Efficient Algorithm of Star Subgraph Queries on Urban Traffic Knowledge Graph
    Sun, Tao
    Xu, Jianqiu
    Hu, Caiping
    DATA SCIENCE AND ENGINEERING, 2022, 7 (04) : 383 - 401
  • [40] BMC: An Efficient Method to Evaluate Probabilistic Reachability Queries
    Zhu, Ke
    Zhang, Wenjie
    Zhu, Gaoping
    Zhang, Ying
    Lin, Xuemin
    DATABASE SYSTEMS FOR ADVANCED APPLICATIONS, PT I, 2011, 6587 : 434 - 449