![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
邻接矩阵
qq_2423338532
这个作者很懒,什么都没留下…
展开
-
图的邻接矩阵
/* 图的邻接矩阵表示法 */ #include<stdio.h> #include<stdlib.h> #define MaxVertexNum 100 /* 最大顶点数设为100 */ #define INFINITY 65535 /* ∞设为双字节无符号整数的最大值65535*/ typedef int Vertex; /* 用顶点...原创 2018-12-18 11:21:52 · 186 阅读 · 0 评论 -
实验五 - 图的邻接矩阵表示法 + DFS
/* 图的邻接矩阵表示法 + DFS*/ #include<stdio.h> #include<stdlib.h> #define MaxVertexNum 10 /* 最大顶点数设为100 */ #define INFINITY 65535 /* ∞设为双字节无符号整数的最大值65535*/ typedef int Vertex; /*...原创 2018-12-18 17:30:42 · 282 阅读 · 0 评论