图深度优先搜索DFS(邻接表)C/C++

  //只简单写了一个ADT(不知道该不该这么说,嘻嘻嘻) //采用的是邻接表法,图片来源于网络。 #include <bits/stdc++.h> using namespace std; typedef char VertexType; typedef int EdgeType; typedef struct EdgeNode{     int adjvex;     int weight;
相关文章
相关标签/搜索