Skip to content
Snippets Groups Projects
Commit 22420abb authored by gianlucarossi15's avatar gianlucarossi15
Browse files

minor changes

parent c0e1da71
No related branches found
No related tags found
1 merge request!1New code version
......@@ -14,17 +14,17 @@
using namespace std;
namespace po = boost::program_options;
static void *handler(void *args){
string mode = *(string *) args;
if(mode=="Random"){
g2 = compress_graph_basic(g, var["depth"].as<int>(), var["proportions"].as<vector<double>>(),
var["directed"].as<bool>());
}else if(mode=="LP"){
g2 = compress_graph_LP(g, e_s, var["depth"].as<int>(), var["proportions"].as<vector<double>>(),
var["directed"].as<bool>());
}
}
//static void *handler(void *args){
// string mode = *(string *) args;
// if(mode=="Random"){
// g2 = compress_graph_basic(g, var["depth"].as<int>(), var["proportions"].as<vector<double>>(),
// var["directed"].as<bool>());
//
// }else if(mode=="LP"){
// g2 = compress_graph_LP(g, e_s, var["depth"].as<int>(), var["proportions"].as<vector<double>>(),
// var["directed"].as<bool>());
// }
//}
int main(int argc, char *argv[]) {
......@@ -76,7 +76,7 @@ int main(int argc, char *argv[]) {
string execMode=var["algorithm"].as<string>();
for (int i=0; i<NUM_TRIALS; i++) {
auto start = chrono::steady_clock::now();
pthread_create(&threads[i], NULL, handler, NULL);
// pthread_create(&threads[i], NULL, handler, NULL);
if (execMode == "Random") {
g2 = compress_graph_basic(g, var["depth"].as<int>(), var["proportions"].as<vector<double>>(),
var["directed"].as<bool>());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment