摘要: /*邻接矩阵定义*/ #define MAX_VERTERX_NUM 100 typedef char VertexType; typedef int EdgeType; typedef struct { VertexType vex[MAX_VERTERX_NUM]; EdgeType arcs[ 阅读全文
posted @ 2020-12-07 21:23 葫芦锤 阅读(21) 评论(0) 推荐(0)
摘要: /** *图基于邻接矩阵的算法 */ /*邻接矩阵定义*/ #define MAX_VERTERX_NUM 100 typedef char VertexType; typedef int EdgeType; typedef struct { VertexType vex[MAX_VERTERX_N 阅读全文
posted @ 2020-12-07 21:23 葫芦锤 阅读(23) 评论(0) 推荐(0)
摘要: /** *图基于邻接表的算法 */ /*邻接表定义*/ #define MAX_VERTERX_NUM 100 typedef char VertexType; typedef struct ArcNode { int adjvex; struct ArcNode *nextarc; } ArcNo 阅读全文
posted @ 2020-12-07 21:22 葫芦锤 阅读(31) 评论(0) 推荐(0)