0
点赞
收藏
分享

微信扫一扫

web前端之若依框架图标对照表、node获取文件夹中的文件名,并通过数组返回文件名、在html文件中引入.svg文件、require、icon

在这里插入图片描述

#include<queue>
using namespace std;
void BFS(Graph G, int v)
{
    visited[v] = 1;

    queue<int> q;
    q.push(v);

    while (!q.empty()) 
    {
        int front = q.front();
        q.pop();

        printf("%c ", G.vexs[front]);

        for (int i = 0; i < G.vexnum; i++) 
        {
            if (!visited[i] && G.arcs[front][i]) 
            {
                q.push(i);
                visited[i] = 1;
            }
        }
    }
}
举报

相关推荐

0 条评论