【发布时间】:2021-01-21 10:33:13
【问题描述】:
我正在使用 networkx 和 single_source_dijkstra 在加权图上计算从一个源到一个目标的最短路径。
但是,我遇到了内存问题。
有没有更有效的计算方法? Networkx 的替代品?查看我的代码:
cost, shortestpath = nx.single_source_dijkstra(graph, startpointcoords, secondptcoords,cutoff=10000000)
【问题讨论】:
标签: python networkx shortest-path dijkstra