摘要: 对象:无权图,可不连通 一、DFS 1. 邻接矩阵 a.核心代码: b.例题地址:http://120.77.243.165/problem.php?id=3956 #include<iostream> using namespace std; const int maxn=100; class G 阅读全文
posted @ 2018-11-20 20:35 shenyuli 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 矩阵: 邻接表: struct arcnode { int adjvex; int weight; arcnode *nextarc; }; struct vnode { int info; arcnode *firstarc; }; struct adjgraph { vnode adjlist[ 阅读全文
posted @ 2018-11-20 19:30 shenyuli 阅读(140) 评论(0) 推荐(0) 编辑
Live2D