diff --git a/TinySTL/Detail/Graph.impl.h b/TinySTL/Detail/Graph.impl.h index 0703d6b..42b9f09 100644 --- a/TinySTL/Detail/Graph.impl.h +++ b/TinySTL/Detail/Graph.impl.h @@ -119,21 +119,6 @@ namespace TinySTL{ node_type start = (get_node(index)); Unordered_set, EqualFunc> visited(7); _BFS(start, func, visited); - //auto nodes = adjacent_nodes(start->first); - //func(*start); - //visited.insert(start->first); - //do{ - // nodes_set_type temp; - // for (auto it = nodes.begin(); it != nodes.end(); ++it){ - // if (visited.count(it->first) == 0){//has not visited - // func(*it); - // visited.insert(it->first); - // auto s = adjacent_nodes(it->first); - // temp.insert(temp.end(), s.begin(), s.end()); - // } - // } - // nodes = temp; - //} while (!nodes.empty()); } template string graph::to_string(){