1. 首页
  2. 课程学习
  3. C++/C
  4. 关于图遍历的一个算法代码

关于图遍历的一个算法代码

上传者: 2020-08-20 04:16:02上传 TXT文件 3.16KB 热度 10次
该算法为用结构体写的图算法,typedef struct groph { int data; struct groph * next; }Groph; bool IsEmpty (groph *p) { if(p==NULL) return true ; else return false; } void DESearch(Groph *,Groph *&,int&,bool[]); void BFSearch(Groph *,int,int,int &,bool[]); void main() { int Gcount=-1; for (int i=0;Gcount
下载地址
用户评论