【发布时间】:2023-01-26 18:41:07
【问题描述】:
NetworkX 库中的 shortest_path 函数默认使用 Dijkstra 算法来获得最小化总长度的最佳路径。
route = nx.shortest_path(G, origin_node, destination_node, weight = 'length')
OSMNx 函数用于查找最短路径的算法是什么?
route = ox.shortest_path(G, orig, dest, weight="length")
该函数是否也使用 Dijkstra 算法?
【问题讨论】:
标签: python shortest-path osmnx