new chapters

This commit is contained in:
Luca Lombardo
2022-03-08 20:39:18 +01:00
parent 8eca30ecdf
commit d6291259d0
18 changed files with 187 additions and 194 deletions
BIN
View File
Binary file not shown.
+3 -3
View File
@@ -75,7 +75,7 @@ void DataRead()
void BuildGraph()
{
ifstream relations("data/Relazioni.txt");
ifstream relations("../data/data_actor_graph/Relazioni.txt");
string s;
const string space = "\t";
@@ -224,7 +224,7 @@ vector<pair<int, double>> closeness(const size_t k) {
// Waiting for all threads to finish
thread.join();
ofstream output_file("visualization/top_actors_c.txt");
ofstream output_file("actor_bench/top_actors_c_70.txt");
for (const auto& [actor_id, farness] : top_actors) {
output_file << actor_id << "\t" << A[actor_id].name << "\t" << 1.0/farness << endl;
}
@@ -315,7 +315,7 @@ vector<pair<int, double>> harmonic(const size_t k) { //
for (auto& thread : threads)
thread.join();
ofstream output_file("visualization/top_actors_h.txt");
ofstream output_file("actor_bench/top_actors_h_70.txt");
for (const auto& [actor_id, harmonic] : top_actors) {
output_file << actor_id << "\t" << A[actor_id].name << "\t" << harmonic << endl;
}
Binary file not shown.