2013年8月13日

摘要: 以上图为例,通过邻接矩阵的方式存储该图,并写出建立图和遍历图的代码``代码的实现比较简单和基础,主要用于巩固和复习数据结构相关知识。#include #include #define MAX_VERTEX_NUM 100#define MAX_VERTEX_NAMELEN 100typedef struct{ char name[MAX_VERTEX_NAMELEN];}VerType;// 图的邻接矩阵存储结构typedef struct{ int VertexNum,EdgeNum; // 顶点数,边数 VerType Ver... 阅读全文
posted @ 2013-08-13 22:43 RAUL_AC 阅读(748) 评论(0) 推荐(0) 编辑

导航