图的深度优先搜索遍历图

#include <iostream> #include <cstdio> #include <vector> using namespace std; struct Node { //v 代表编号 //w 代表权值 int v,w; Node(int _v,int _w):v(_v),w(_w){} }; //图的存储结构 vector<Node> imap[
相关文章
相关标签/搜索