From d959eac03cca80f203a2e001d98e833586a4677a Mon Sep 17 00:00:00 2001
From: gianlucarossi15 <gianluca.rossi2000@live.com>
Date: Mon, 11 Mar 2024 16:51:44 +0100
Subject: [PATCH] minor changes

---
 (p,t)_sparsification/main.cpp | 22 +++++-----------------
 1 file changed, 5 insertions(+), 17 deletions(-)

diff --git a/(p,t)_sparsification/main.cpp b/(p,t)_sparsification/main.cpp
index 6e2c7ef..957d266 100644
--- a/(p,t)_sparsification/main.cpp
+++ b/(p,t)_sparsification/main.cpp
@@ -5,8 +5,8 @@
 #include "io.h"
 #include <string>
 #include "hash.h"
-
-#include <pthread.h>
+#include <omp.h>
+//#include <pthread.h>
 
 
 #define NUM_TRIALS 10
@@ -14,17 +14,7 @@
 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>());
-    }
-}
 
 int main(int argc, char *argv[]) {
 
@@ -74,10 +64,8 @@ int main(int argc, char *argv[]) {
     auto start = chrono::steady_clock::now();
 
     string execMode=var["algorithm"].as<string>();
-#include <omp.h>
-#include <chrono>
-#include <vector>
-#include <string>
+
+
 
 // Assuming NUM_TRIALS and other variables are defined somewhere
 
@@ -86,7 +74,7 @@ int main(int argc, char *argv[]) {
         // Inside the loop, each thread will execute one iteration
 
         // Each thread will create a separate graph instance, so make sure g2 is declared inside the loop
-        Graph g2;
+
 
         // Other variables like edges_original and edges_compressed need to be declared thread-safe or local to each thread
 
-- 
GitLab