✨ astar实现
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package astar
|
||||
|
||||
// Graph 适用于 A* 算法的图数据结构接口定义
|
||||
type Graph[Node comparable] interface {
|
||||
// Neighbours 返回特定节点的邻居节点
|
||||
Neighbours(node Node) []Node
|
||||
}
|
||||
Reference in New Issue
Block a user