首页    期刊浏览 2024年11月28日 星期四
登录注册

文章基本信息

  • 标题:A Python Algorithm for Shortest-Path River Network Distance Calculations Considering River Flow Direction
  • 本地全文:下载
  • 作者:Nicolas Cadieux ; Margaret Kalacska ; Oliver T. Coomes
  • 期刊名称:Data
  • 印刷版ISSN:2306-5729
  • 出版年度:2020
  • 卷号:5
  • 期号:1
  • 页码:8-21
  • DOI:10.3390/data5010008
  • 出版社:MDPI Publishing
  • 摘要:Vector based shortest path analysis in geographic information system (GIS) is well established for road networks. Even though these network algorithms can be applied to river layers, they do not generally consider the direction of flow. This paper presents a Python 3.7 program (upstream_downstream_shortests_path_dijkstra.py) that was specifically developed for river networks. It implements multiple single-source (one to one) weighted Dijkstra shortest path calculations, on a list of provided source and target nodes, and returns the route geometry, the total distance between each source and target node, and the total upstream and downstream distances for each shortest path. The end result is similar to what would be obtained by an “all-pairs” weighted Dijkstra shortest path algorithm. Contrary to an “all-pairs” Dijkstra, the algorithm only operates on the source and target nodes that were specified by the user and not on all of the nodes contained within the graph. For efficiency, only the upper distance matrix is returned (e.g., distance from node A to node B), while the lower distance matrix (e.g., distance from nodes B to A) is not. The program is intended to be used in a multiprocessor environment and relies on Python’s multiprocessing package.
  • 关键词:weighted Dijkstra; GIS; NetworkX; Amazonia weighted Dijkstra ; GIS ; NetworkX ; Amazonia
国家哲学社会科学文献中心版权所有