数据结构与算法
小志8554
在校学生
展开
-
图的邻接表存储及其遍历(使用模板)
#include #include using namespace std;const int MaxSize = 10; //图最多10个顶点数//邻接表存储结构//边表节点struct ArcNode{ int adjvex; //邻接点域:节点在数组中的索引,0、1、2、3... ArcNode *next; //同级子节点};//顶点表节点原创 2014-10-06 16:52:34 · 693 阅读 · 0 评论 -
图的邻接矩阵存储及其遍历(使用模板)
/******************************************************************** created: 2014/10/04 created: 4:10:2014 14:48 filename: D:\我的文档\visual c++\数据结构\GraphTest\MGraph\MGraph.cpp file path: D:\我的原创 2014-10-06 16:58:18 · 707 阅读 · 0 评论