diff --git a/main.cpp b/main.cpp index 783283ed49357413da7348ce704b2028d22cb437..b1d3007063fb79e3fb46a7a2d7375b77e916a30b 100644 --- a/main.cpp +++ b/main.cpp @@ -163,7 +163,7 @@ public: erase(root,*t); } }; -}*/ +} namespace local_storage{ template<class T> @@ -368,7 +368,7 @@ public: }; template<class T> int graph<T>::node::_id=0; -} +}*/ void test1(int num) { @@ -378,8 +378,8 @@ void test1(int num) { for(size_t i=0;i<num;i++) { - local_storage::graph<int> graph{}; - graph.add_node(6); + //local_storage::graph<int> graph{}; + //graph.add_node(6); } } end=time(0); @@ -407,12 +407,12 @@ void test2(int num) { for(size_t i=0;i<num;i++) { - local_storage::graph<int> graph{}; + /*local_storage::graph<int> graph{}; for(size_t j=0;j<5;j++) graph.add_node(6); for(size_t j=0;j<5;j++) for(size_t l=0;l<5;l++) - graph.connect(graph[j],graph[l]); + graph.connect(graph[j],graph[l]);*/ } } end=time(0); @@ -445,7 +445,7 @@ void test3(int num) { for(size_t i=0;i<num;i++) { - local_storage::graph<int> graph{}; + /*local_storage::graph<int> graph{}; for(size_t j=0;j<29;j++) graph.add_node(6); graph.add_node(30); @@ -453,7 +453,7 @@ void test3(int num) graph.connect(graph[j-1],graph[j]); local_storage::graph<int>::node* target; graph.run([&target](local_storage::graph<int>::node& node){if(node.data()==30) {target=&node;return true;}return false;}); - graph.erase(*target); + graph.erase(*target);*/ } } end=time(0);