【发布时间】:2011-07-12 04:12:57
【问题描述】:
在询问了一些关于最短路径算法的一般建议 (2D waypoint pathfinding: combinations of WPs to go from curLocation to targetLocation),然后询问了更具体的实现 (Shortest path algorithm (eg. Dijkstra's) for 500+ waypoints/nodes?),我决定使用 JUNG 库 (http://jung.sf.net/)。
我现在的目标是通过使用点列表(大小约为 1000)中的任意点组合来获得从 A 点到 B 点的最短路径,其中每个点都直接连接到 x 内的所有点距离。
为此,我需要设置一个树形图。我相信这是一个树形图实现列表:http://jung.sourceforge.net/doc/api/edu/uci/ics/jung/graph/class-use/Hypergraph.html#edu.uci.ics.jung.algorithms.shortestpath
正确吗?现在,所有这些实现都仅限于稀疏树图,但我必须创建一个相当密集的树图。
那么,我应该在 JUNG 中使用什么树形图来实现我的目标?
【问题讨论】:
标签: java path-finding shortest-path graph-algorithm jung