摘要: void DFS( int x ) { visit[x] = true; for(int i=0; i Q; void BFS ( int s ) { Visit[s] = true; Q.push(s); while( !Q.empty() ) { int V = Q.front(); Q.pop(); ... 阅读全文
posted @ 2018-07-25 10:13 Gaojinman 阅读(119) 评论(0) 推荐(0)