图的深度优先遍历与广度优先遍历

准备:图的邻接表与队列 #include<stdlib.h>#include<iostream> using namespace std; #define max 20    //顶点数 typedef enum{ DG,DN,UDG,UDN }graphkind; typedef int datatype; typedef char vertextype; typedef struct node
相关文章
相关标签/搜索