Abstract
Given a directed graph G with n nodes and e edges, to check whether a node v is reachable from another node u through a path is often required. Such a problem is fundamental to numerous applications, including geographic navigation, Internet routing, ontology queries based on RDF/OWL, and metabolic network, as well as XML indexing. Among them, some involve huge but sparse graphs and require fast answering of reachability queries. In this paper, we propose a novel method called core labeling to handle reachability queries for massive, sparse graphs. The goal is to optimize both query time and labeling time. Our method consists of two schemes: Core-I and Core-II. For the Core-I labeling scheme, both the time and space requirements are bounded by O(n + e + s·b), where s is the number of the start nodes of all non-tree edges (edges that do not appear in the spanning tree of G); andb is the width of a subgraph of G. The size of that subgraph is bounded by O(t), where t is the number of all the non-tree edges. The query time of Core-I is bounded by O(logb). The Core-II labeling scheme has constant query time, but the labeling time is increased to O(n + e + s·b·logb).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Aho, A.V., Hopcroft, J.E., Ullman, J.D.: On finding lowset common ancestors in trees. SIAM J. Comput. 5(1), 115–132 (1976)
Bender, M.A., Farach-Colton, M.: The LCA Problem Revisited. In: Gonnet, G.H., Viola, A. (eds.) LATIN 2000. LNCS, vol. 1776, pp. 88–94. Springer, Heidelberg (2000)
Chen, Y.: On the decomposition of DAGs into disjoint chains. In: Proc. of 18th Int. DEXA Conf. on Database and Expert Systems Application, September 2007. LNCS, vol. 4653, pp. 243–253. Springer, Heidelberg (2007)
Harel, D., Tarjan, R.E.: Fast algorithms for finding nearest common ancestors. SIAM J. Comput. 13, 338–355 (1984)
Knuth, D.E.: The Art of Computer Programming, vol. 1. Addison-Wesley, Reading (1969)
Tarjan, R.: Depth-first Search and Linear Graph Algorithms. SIAM J. Compt. 1(2), 140–146 (1972)
Wang, H., He, H., Yang, J., Yu, P.S., Yu, J.X.: Dual Labeling: Answering Graph Reachability Queries in Constant time. In: Proc. of Int. Conf. on Data Engineering, Atlanta, USA, April 8, 2006 (2006)
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 2008 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Chen, Y. (2008). On the Evaluation of Large and Sparse Graph Reachability Queries. In: Bhowmick, S.S., Küng, J., Wagner, R. (eds) Database and Expert Systems Applications. DEXA 2008. Lecture Notes in Computer Science, vol 5181. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-85654-2_12
Download citation
DOI: https://doi.org/10.1007/978-3-540-85654-2_12
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-85653-5
Online ISBN: 978-3-540-85654-2
eBook Packages: Computer ScienceComputer Science (R0)