图:在邻接矩阵上实现拓扑排序(C语言)

拓扑排序:数组 用于排列事件发生的顺序,也可判断图中是否有环。code 代码实现:blog #include<stdio.h> #include<stdlib.h> #define MaxVexNum 50 #define MaxInt 32767 #define MaxEdgeNum 50 //邻接矩阵 typedef int VertexType; typedef int EdgeType;
相关文章
相关标签/搜索