摘要:
无向图的邻接表存储方法 源程序: #include <stdio.h>#include <stdlib.h>#define VNUM 100 //顶点的类型typedef char VerType;typedef struct arcnode{ int adjvex; //下一条边的顶点编号 str 阅读全文
posted @ 2020-07-12 16:12
bobo哥
阅读(149)
评论(0)
推荐(0)
摘要:
图的带权邻接矩阵存储 源程序: #include <stdio.h>#include <stdlib.h>#define VNUM 20const int MAX_INT=0; //图的类型定义typedef struct gp{ char vexs[VNUM]; int arcs[VNUM][VN 阅读全文
posted @ 2020-07-12 16:07
bobo哥
阅读(248)
评论(0)
推荐(0)
摘要:
图的邻接矩阵存储 源程序 #include <stdio.h>#include <stdlib.h> const int vnum=20; //定义图的类型typedef struct gp{ char verx[vnum]; int arcs[vnum][vnum]; int vernum,arc 阅读全文
posted @ 2020-07-12 16:01
bobo哥
阅读(145)
评论(0)
推荐(0)

浙公网安备 33010602011771号