Skip to content

Commit 617fd49

Browse files
committed
prim
1 parent 8469afb commit 617fd49

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Prim.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ import (
44
"fmt"
55
)
66

7+
var MAX_SIZE = 1000
8+
79
func main() {
810
fmt.Println("Prim")
911
}
12+
13+
type Graph struct {
14+
vexs [MAX_SIZE]string //定点集合
15+
vexnum int //定点数量
16+
edgnum int //边数量
17+
matri [MAX_SIZE][MAX_SIZE]int //邻接矩阵
18+
}
19+
20+
func init() {
21+
22+
}
23+
24+
func prim() {
25+
26+
}

0 commit comments

Comments
 (0)