🎨 注释优化
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package astar
|
||||
|
||||
// Graph 适用于 A* 算法的图数据结构接口定义
|
||||
// Graph 适用于 A* 算法的图数据结构接口定义,表示导航网格,其中包含了节点和连接节点的边。
|
||||
type Graph[Node comparable] interface {
|
||||
// Neighbours 返回特定节点的邻居节点
|
||||
// Neighbours 返回与给定节点相邻的节点列表。
|
||||
Neighbours(node Node) []Node
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user