广度优先搜索(邻接表)

#include <iostream> #include <cstdio> #include <vector> #include <queue> using namespace std; struct Node{ //to 代表每个节点 //next 代表下一个元素的编号 int to,next; }e[100]; int head[100] = {0}; int c
相关文章
相关标签/搜索