Skip to main content
Log in

Constant-Time Reachability in DAGs Using Multidimensional Dominance Drawings

  • Original Research
  • Published:
SN Computer Science Aims and scope Submit manuscript

Abstract

Answering reachability queries in directed acyclic graphs is an operation required by many applications. In this paper, we present efficient algorithms to construct and search a space-efficient data structure in the k-dimensional space that is based on Graph Dominance Drawing. Our algorithms construct this data structure in O(km) time, while it can be stored in O(kn) space. Any reachability query is answered in constant time, since no “falsely implied paths (fips)” are introduced. We also present experimental results that show that the number of dimensions, k, in the solutions produced by our techniques is low. Additionally, we present a new method for constructing random DAGs with prespecified structure and density. The analysis of our experimental results reveals an interesting interplay between density and structure.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

References

  1. Barabási AL, Albert R. Emergence of scaling in random networks. Science. 1999;286(5439):509–12.

    Article  MathSciNet  Google Scholar 

  2. Chen Y, Chen Y. On the dag decomposition. Br J Math Comput Sci. 2014;10(6):1–27 (2015, Article no.BJMCS.19380, ISSN: 2231-0851).

    Article  Google Scholar 

  3. Di Battista G, Eades P, Tamassia R, Tollis I. Graph drawing: algorithms for the visualization of graphs. Prentice Hall; 1998. p. 112–127.

  4. Di Battista G, Eades P, Tamassia R, Tollis I. Graph drawing: algorithms for the visualization of graphs. Hoboken: Prentice Hall; 1998. p. 112–27.

    MATH  Google Scholar 

  5. Di Battista G, Garg A, Liotta G, Parise A, Tamassia R, Tassinari E, Vargiu F, Vismara L. Drawing directed acyclic graphs: an experimental study. Int J Comput Geom Appl. 2000;10(06):623–48.

  6. Di Battista G, Tamassia R, Tollis IG. Area requirement and symmetry display of planar upward drawings. Discrete & Computational Geometry. 1992;7:381–401. https://doi.org/10.1007/BF02187850.

  7. Dilworth RP. A decomposition theorem for partially ordered sets. Ann Math. 1950;52:161–6.

    Article  MathSciNet  Google Scholar 

  8. ElGindy HA, Houle ME, Lenhart W, Miller M, Rappaport D, Whitesides S. Dominance drawings of bipartite graphs. In: Proceedings of the 5th Canadian Conference on Computational Geometry, Waterloo, Ontario, Canada, August 1993, 1993;187–191.

  9. Erdős P, Rényi A. On random graphs i. Publ Math Debrecen. 1959;6(290–297):18.

    MATH  Google Scholar 

  10. Fisher DL, Goldstein W. Stochastic PERT networks as models of cognition: Derivation of the mean, variance, and distribution of reaction time using Order-of-Processing (OP) diagrams. J Math Psychol. 1983;27:121–151.

  11. Hagberg A, Swart P, Chult D. Exploring network structure, dynamics, and function using NetworkX (No. LA-UR-08-05495; LA-UR-08-5495). Los Alamos National Lab.(LANL), Los Alamos, NM, United States.

  12. Jagadish HV. A compression technique to materialize transitive closure. ACM Trans Database Syst. 1990;15(4):558–98. https://doi.org/10.1145/99935.99944.

    Article  MathSciNet  Google Scholar 

  13. Kornaropoulos EM, Tollis IG. Weak dominance drawings and linear extension diameter. CoRR. 2011. arXiv:1108.1439

  14. Kornaropoulos EM, Tollis IG. Weak dominance drawings for directed acyclic graphs. In: Graph Drawing - 20th International Symposium, GD 2012, Redmond, WA, USA, September 19-21, 2012, Revised Selected Papers, 2012;559–560. https://doi.org/10.1007/978-3-642-36763-2_52

  15. Kornaropoulos EM, Tollis IG. Algorithms and bounds for overloaded orthogonal drawings. J Graph Algorithms Appl. 2016;20(2):217–46. https://doi.org/10.7155/jgaa.00391.

    Article  MathSciNet  MATH  Google Scholar 

  16. Li L, Hua W, Zhou X. HD-GDD: high dimensional graph dominance drawing approach for reachability query. World Wide Web. 2017;20(4):677–96. https://doi.org/10.1007/s11280-016-0407-z.

    Article  Google Scholar 

  17. Lionakis P, Ortali G, Tollis I. Adventures in abstraction: Reachability in hierarchical drawings. In: Graph Drawing and Network Visualization: 27th International Symposium, GD 2019, Prague, Czech Republic, September 17–20, 2019, Proceedings, 2019;593–595.

  18. McConnell RM, Spinrad JP. Linear-time transitive orientation. In: Proceedings of the eighth annual ACM-SIAM symposium on Discrete algorithms, 1997;19–25.

  19. Ortali G, Tollis IG. Multidimensional dominance drawings. 2019. arXiv:1906.09224.

  20. Ortali G, Tollis IG. A new framework for hierarchical drawings. J Graph Algorithms Appl. 2019;23(3):553–78. https://doi.org/10.7155/jgaa.00502.

  21. Peng Y, Zhang Y, Lin X, Qin L, Zhang W. Answering billion-scale label-constrained reachability queries within microsecond. Proc VLDB Endowment. 2020;13:812–25. https://doi.org/10.14778/3380750.3380753

    Article  Google Scholar 

  22. Six JM, Tollis IG. Automated visualization of process diagrams. In: Mutzel P, Jünger M, Leipert S, editors. Graph drawing. Berlin: Springer; 2002. p. 45–59.

    Chapter  Google Scholar 

  23. Su J, Zhu Q, Wei H, Yu JX. Reachability querying: Can it be even faster? IEEE Trans Knowl Data Eng. 2017;29(3):683–97.

    Article  Google Scholar 

  24. Veloso RR, Cerf L, Jr, WM, Zaki MJ. Reachability queries in very large graphs: A fast refined online search approach. In: Proceedings of the 17th international conference on extending database technology, EDBT 2014, Athens, Greece, March 24-28, 2014., 2014;511–522. https://doi.org/10.5441/002/edbt.2014.46.

  25. Watts DJ, Strogatz SH. Collective dynamics of ’small-world’ networks. Nature. 1998;393(6684):440.

  26. Yannakakis M. The complexity of the partial order dimension problem. SIAM J Algebra Discrete Methods. 1982;3:303–22.

    Article  MathSciNet  Google Scholar 

  27. Zhou J, Zhou S, Yu JX, Wei H, Chen Z, Tang X. Dag reduction: Fast answering reachability queries. In: Proceedings of the 2017 ACM International Conference on Management of Data, SIGMOD ’17, pp. 375–390. ACM, New York, NY, USA 2017. https://doi.org/10.1145/3035918.3035927.

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Panagiotis Lionakis.

Ethics declarations

Conflict of Interest

The authors declare that they have no conflict of interest.

Ethical Approval

This article does not contain any studies with human participants or animals performed by any of the authors.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Lionakis, P., Ortali, G. & Tollis, I.G. Constant-Time Reachability in DAGs Using Multidimensional Dominance Drawings. SN COMPUT. SCI. 2, 320 (2021). https://doi.org/10.1007/s42979-021-00713-6

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s42979-021-00713-6

Keywords

Navigation