totofeh преди 9 години
родител
ревизия
f547a2d3de
променени са 2 файла, в които са добавени 8 реда и са изтрити 8 реда
  1. 4 4
      src/tests/boost_graph/partitioning/main.cpp
  2. 4 4
      src/tests/multithreading/main.cpp

+ 4 - 4
src/tests/boost_graph/partitioning/main.cpp

@@ -48,11 +48,11 @@ int main()
 	/*** Génération du graphe ***/
 
     OrientedGraph *go = new OrientedGraph();
-    std::string type_graph = "parcellaire";
+    std::string type_graph = "tree";//"parcellaire";
     std::pair<bool,bool> Spectrale = {false,false};
 
     if(type_graph == "grid"){
-		int side = floor(sqrt(100));
+		int side = floor(5);
 		std::vector<std::pair<int,int>> vertex_selection;
 	    std::pair<int,int> tmp;
 	    tmp.first = 0;
@@ -64,7 +64,7 @@ int main()
 	    build_graph_grid(go, side, vertex_selection, weight_vertex,texte,true);
 	    Plot_OrientedGraph(go,"../../sortie_graphe/Tests/Graphes/Multiniveau/txt/grid_500.txt");
 	}else if (type_graph == "tree"){
-		int nbr_sommets = 70;
+		int nbr_sommets = 80;
 		int nbr_sources = 2;
 		Entiers niveau = {2,2};
 		const char *texte;
@@ -107,7 +107,7 @@ int main()
 	}
 
 	/*** Paramétrage du Multiniveau ***/
-	std::vector<uint> numeric_parameters = {(uint)(num_vertices(*go)/50), 4, 10};
+	std::vector<uint> numeric_parameters = {(uint)(num_vertices(*go)), 4, 10};
 	std::vector<std::string> parameters = {"HEM", "gggp", "diff", "ratio"};
 
 	uint nbr_tirage = 1;

+ 4 - 4
src/tests/multithreading/main.cpp

@@ -122,8 +122,8 @@ double grid_multithreading(int cluster_number)
 
 double tree_monothreading()
 {
-    std::vector < int > levels = { 5,4, 3, 2 };
-    int nbr_sommets = 10000;
+    std::vector < int > levels = { 4, 3, 2 };
+    int nbr_sommets = 1000;
     int sources = nbr_sommets/100*1;
     paradevs::tests::boost_graph::RandomGraphGenerator generator(nbr_sommets,
                                                                  levels,
@@ -154,8 +154,8 @@ double tree_monothreading()
 
 double tree_multithreading(int cluster_number)
 {
-    std::vector < int > levels = { 5,4, 3, 2 };
-    int nbr_sommets = 10000;
+    std::vector < int > levels = { 4, 3, 2 };
+    int nbr_sommets = 1000;
     int sources = nbr_sommets/100*1;
     paradevs::tests::boost_graph::RandomGraphGenerator generator(nbr_sommets,
                                                                  levels,