astar实现

This commit is contained in:
kercylan98
2023-06-19 19:32:10 +08:00
parent 63d9aae0bf
commit 1eaa2a672c
5 changed files with 105 additions and 4 deletions
+7
View File
@@ -0,0 +1,7 @@
package astar
// Graph 适用于 A* 算法的图数据结构接口定义
type Graph[Node comparable] interface {
// Neighbours 返回特定节点的邻居节点
Neighbours(node Node) []Node
}