Finetune doc and code.

This commit is contained in:
krahets
2023-07-21 15:18:01 +08:00
parent 76f11ae168
commit 1a55dbdf2e
5 changed files with 21 additions and 25 deletions

View File

@ -8,7 +8,6 @@
/* Driver Code */
int main() {
/* 初始化无向图 */
graphAdjList *graph = newGraphAdjList(5);
// 初始化顶点

View File

@ -118,7 +118,6 @@ Vertex **graphBFS(graphAdjList *t, Vertex *startVet) {
resIndex++;
queuePop(que); // 队首元素出队
}
// 释放内存
freeQueue(que);
freeHash(visited);