Fix "函数" and "方法"

This commit is contained in:
krahets
2023-06-24 16:37:56 +08:00
parent 674ff2910a
commit 504dff1728
10 changed files with 18 additions and 18 deletions
@@ -18,7 +18,7 @@ type graphAdjList struct {
adjList map[Vertex][]Vertex
}
/* 构造方法 */
/* 构造函数 */
func newGraphAdjList(edges [][]Vertex) *graphAdjList {
g := &graphAdjList{
adjList: make(map[Vertex][]Vertex),
@@ -14,7 +14,7 @@ type graphAdjMat struct {
adjMat [][]int
}
/* 构造方法 */
/* 构造函数 */
func newGraphAdjMat(vertices []int, edges [][]int) *graphAdjMat {
// 添加顶点
n := len(vertices)