算法导论-22.3-6 用栈实现DFS
摘要:
自己写的一个:#include <iostream>#include <stack>using namespace std;const int maxV = 100, white = 0, gray = 1, black = 2;int v, itime;struct SNode{ //节点 int color, d, f, num; SNode *p;};struct SAdj{ //邻接表 int num; SAdj *next;};SAdj *adj[maxV];SNode *vertex[maxV];stack<SNode*> vertexStack 阅读全文
posted @ 2011-08-05 20:30 龙豆 阅读(2544) 评论(0) 推荐(1)
浙公网安备 33010602011771号