题解 1702: 数据结构-图的遍历-DFS深度优先搜索(深搜)

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

图的遍历-DFS

```cpp#includeusingnamespacestd;#definelllonglongintn;//节点数constintN=55;//最大节点数intmp[N][N]={};//邻接表boolvis[N]={};//标记intstep=0;//遍历步数voiddfs(intx){//x表