【发布时间】:2014-09-20 03:21:28
【问题描述】:
我正在使用 networkx 做一些工作,并使用了两个最短路径算法,即:
shortest_path(G[, source, target, weight])
dijkstra_path(G, source, target[, weight])
我了解dijkstra_path(G, source, target[, weight]) 函数基于dijkstra 的最短路径算法。我想知道shortest_path(G[, source, target, weight]) 函数所基于的源算法。我需要它,因为我必须报告我使用的算法。我搜索了一些 stackoverflow 页面,例如 Networkx - Shortest path length 和
All shortest paths for weighted graphs with networkx? 但他们并没有完全回答我的问题,我也仔细查看了 networkx 文档和谷歌上的其他文章,但没有找到答案。有人可以帮我提供这些信息。谢谢
【问题讨论】:
标签: python algorithm graph networkx shortest-path