Skip to main content

On the Evaluation of Large and Sparse Graph Reachability Queries

  • Conference paper
Database and Expert Systems Applications (DEXA 2008)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 5181))

Included in the following conference series:

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).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Aho, A.V., Hopcroft, J.E., Ullman, J.D.: On finding lowset common ancestors in trees. SIAM J. Comput. 5(1), 115–132 (1976)

    Article  MATH  MathSciNet  Google Scholar 

  2. 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)

    Chapter  Google Scholar 

  3. 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)

    Google Scholar 

  4. Harel, D., Tarjan, R.E.: Fast algorithms for finding nearest common ancestors. SIAM J. Comput. 13, 338–355 (1984)

    Article  MATH  MathSciNet  Google Scholar 

  5. Knuth, D.E.: The Art of Computer Programming, vol. 1. Addison-Wesley, Reading (1969)

    MATH  Google Scholar 

  6. Tarjan, R.: Depth-first Search and Linear Graph Algorithms. SIAM J. Compt. 1(2), 140–146 (1972)

    MathSciNet  Google Scholar 

  7. 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)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Sourav S. Bhowmick Josef Küng Roland Wagner

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics