关于图遍历的一个算法代码
该算法为用结构体写的图算法,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
下载地址
用户评论