Skip to main content

A Vertical Breadth-First Multilevel Path Algorithm to Find All Paths in a Graph

  • Chapter
  • First Online:
Data Management and Analysis

Part of the book series: Studies in Big Data ((SBD,volume 65))

Abstract

This paper presents a novel approach called vertical breadth-first tree that utilizes vertical data structures to find all-length paths (including shortest paths) for all pairs of vertices in a graph. Identifying all available paths, including shortest paths is a relevant research problem as this concept can help solve a range of complex problems (e.g., routing problems in computer networks). The advancement of technology, complex computer networks, and extensive exchange of internet communications have resulted in massive increase in data. The conventional path finding algorithms do not scale well with the massive volume of data being communicated over the network and this motivates the need to develop some scalable and efficient path finding algorithms.

Our approach is an advancement of breadth-first algorithm and uses logical operations for path identification. Using vertical data structure, our approach identifies all paths of varying lengths in a graph and stores those paths in the form of a multilevel bit vector tree (MBVT). This MBVT results in faster computation of shortest path from source vertex to target vertex with the use of indexes. Additionally, our proposed algorithm with vertical data structures is more suitable in distributed processing. Our proposed approach allows addition or removal of any edge in the graph without creating the need to re-generate the multilevel bit vector tree. The results of the implementation of our approach on three sample graphs show that vertical breadth-first approach performed shortest path computations compared with existing approaches (Dijkstra’s and all-pair shortest path). The results also show that, when queried about the shortest path between any two vertices, our algorithm just needs to perform a simple look-up in multilevel bit vector tree via indexes which significantly improves the overall efficiency of shortest-path identification.

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 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 199.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Ittai, A., Shiri, C., Daniel, D., Goldberg, A. V., & Werneck, R. F. (2016). On dynamic approximate shortest paths for planar graphs with worst case costs. In SODA 16 Proceddings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms. Philadelphia: SIAM.

    Google Scholar 

  2. Cheng Nan, L. (April 2016). On the construction of all shortest node-disjoint paths in star networks. Elsevier Information Processing Letters, 116(4), 299–303.

    Article  MathSciNet  Google Scholar 

  3. Dorogovtsev, S. N. (2003). Real networks. In Evolution of networks from biological nets to the internet and WWW (pp. 31–73). Oxford, UK: Oxford University Press.

    Chapter  Google Scholar 

  4. Newman, M. E., & Girvan, M. (2004). Finding and evaluating community structure in networks. Physical Review E, 69(2), 026113.

    Article  Google Scholar 

  5. Newman, M. E. J. (2001). Scientific collaboration networks. II. Shortest paths, weighted networks and centrality. Physical Review E, 64, 016132-1–016132-7.

    Google Scholar 

  6. Hershberger, J., Maxel, M., & Suri, S. (2007). Finding the k shortest simple paths: A new algorithm and its implementation. ACM Trans. Algorithms, 3(4), 45.

    Article  MathSciNet  Google Scholar 

  7. Lucchese, C., Orlando, S., & Perego, R. (2006). Fast and memory efficient mining of frequent closed itemsets. IEEE Transactions on Knowledge and Data Engineering, 18(1), 21–36.

    Article  Google Scholar 

  8. Akiba, T., Iwata, Y., & Yoshida, Y. (2013). Fast exact shortest-path distance queries on large networks by pruned landmark labeling. In Proceedings of the 2013 ACM SIGMOD International Conference on Management of Data (pp. 349–360). New York: ACM.

    Chapter  Google Scholar 

  9. Goldberg, A. V., & Harrelson, C. (2005). Computing the shortest path: A search meets graph theory. In Proceedings of the sixteenth annual ACM-SIAM symposium on discrete algorithms. Philadelphia: SIAM.

    Google Scholar 

  10. Szeider, S. (2003). Finding paths in graphs avoiding forbidden transitions. Discrete Applied Mathematics, 126(2–3), 261–273.

    Article  MathSciNet  Google Scholar 

  11. Abadi, D. J., Marcus, A., Madden, S. R., & Hollenbach, K. (2007). Scalable semantic web data management using vertical partitioning. In Proc. 33rd Int. Conf. Very Large Data Bases (pp. 411–422).

    Google Scholar 

  12. Kang, U., & Faloutsos, C. (2013). Big graph mining: Algorithms and discoveries. ACM SIGKDD Explorations Newsletter, 14(2), 29–36.

    Article  Google Scholar 

  13. Perrizo, W., Ding, Q., Khan, M., Denton, A., & Ding, Q. (2007). An efficient weighted nearest neighbour classifier using vertical data representation. International Journal of Business Intelligence and Data Mining, 2(1), 64.

    Article  Google Scholar 

  14. Houque, S. R., Imam, S. M., Hossain, M. K., & Perrizo, W. Algorithm for shifting images in Peano mask trees. In ICCIT, Islamic University of Technology, 28-30 December 2005. ICCIT.

    Google Scholar 

  15. Zaki, M. J. (2014). Graph data. In Data mining and analysis fundamental concepts and algorithms (pp. 93–132). New York: Cambridge University Press.

    Chapter  Google Scholar 

  16. Kuipers, F., Van, M. P., Korkmaz, T., & Krunz, M. (December 2002). An overview of cobstraint based path selection algorithms for QoS routing. IEEE Communications Magazine, 40(12), 50–55.

    Article  Google Scholar 

  17. Spira, P. (2004). A new algorithm for finding all shortest paths in a graph of positive arcs in average time. SIAM Journal on Computing, 2(1), 28–32.

    Article  MathSciNet  Google Scholar 

  18. Johnson, D. B. (1973). A note on Dijkstra’s shortest path algorithm. Journal of the ACM, 20(3), 385–388.

    Article  MathSciNet  Google Scholar 

  19. Singh, M., Anu, V., Walia, G. S., & Goswami, A. (2018). Validating requirements reviews by introducing fault-type level granularity. In Proceedings of the 11th Innovations in Software Engineering Conference on - ISEC ’18 (pp. 1–11).

    Google Scholar 

  20. Singh, M., Walia, G. S., & Goswami, A. (2017). Validation of inspection reviews over variable features set threshold. In 2017 International Conference on Machine Learning and Data Science (MLDS) (pp. 128–135). IEEE.

    Google Scholar 

  21. Singh, M., Walia, G. S., & Goswami, A. (2017). An empirical investigation to overcome class-imbalance in inspection reviews. In 2017 International Conference on Machine Learning and Data Science (MLDS) (pp. 128–135). IEEE.

    Google Scholar 

  22. Daniel, V., & Guy, D. (2005). The shortest path problem with forbidden paths. European Journal of Operational Research, 165(1), 97–107.

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Maninder Singh .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Singh, M., Anu, V., Walia, G.S. (2020). A Vertical Breadth-First Multilevel Path Algorithm to Find All Paths in a Graph. In: Alhajj, R., Moshirpour, M., Far, B. (eds) Data Management and Analysis. Studies in Big Data, vol 65. Springer, Cham. https://doi.org/10.1007/978-3-030-32587-9_10

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-32587-9_10

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-32586-2

  • Online ISBN: 978-3-030-32587-9

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics