摘要: //create graph by adjacent list #include<iostream> #define MAX 20 using namespace std; //定义图的类型 typedef enum{DG,UDG,DN,UDN}GraphKind; //定义弧结点 typedef 阅读全文
posted @ 2021-04-11 20:58 NoerForest 阅读(279) 评论(0) 推荐(0)
摘要: //create graph #include<iostream> #include<iomanip>//打印邻接矩阵时提供setw函数来置表位 #define MAX 20//图的顶点个数最大值,也可以不设置这个,用堆分配 using namespace std; typedef enum{DG, 阅读全文
posted @ 2021-04-11 13:29 NoerForest 阅读(389) 评论(0) 推荐(0)