🎨 注释优化

This commit is contained in:
kercylan98
2023-06-20 11:17:23 +08:00
parent 686ab9de3a
commit 3e07449c87
4 changed files with 68 additions and 6 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package astar
// Graph 适用于 A* 算法的图数据结构接口定义
// Graph 适用于 A* 算法的图数据结构接口定义,表示导航网格,其中包含了节点和连接节点的边。
type Graph[Node comparable] interface {
// Neighbours 返回定节点的邻居节点
// Neighbours 返回与给定节点相邻的节点列表。
Neighbours(node Node) []Node
}