-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsplit_graph.cpp
More file actions
49 lines (40 loc) · 1.19 KB
/
split_graph.cpp
File metadata and controls
49 lines (40 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <fstream>
#include <iostream>
#include <cstdlib>
#include <string>
#include <list>
#include <vector>
#include <cassert>
#include <memory.h>
#include "covergraph.h"
const string Green = "\033[0;32m";
const string Reset = "\033[0m";
const string Red = "\033[0;31m";
static string get_current_time_str() {
time_t rawtime;
struct tm *timeinfo;
char buffer[80];
time(&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer, 80, "%Y-%m-%d %H:%M:%S", timeinfo);
std::string str(buffer);
return str;
}
int main(int argc, char *argv[]) {
cout << Green << "--------------start------------" << get_current_time_str() << Reset << endl;
string defaultdata = "../../../uqswan22/datasets/twitter";
string datagraph = defaultdata;;
const char* num_of_workers;
int pouch_size_cmd = 0;
int rwscale = 0;
for(int i=0; i<argc; i++){
if(string(argv[i]) == "--dataset"){
datagraph = string(argv[i+1]);
}
}
Graph graph = Graph(datagraph);
graph.split_graph(4);
//graph.free_memory();
cout << Red << "--------------stop------------" << get_current_time_str() << Reset << endl << endl << endl;
return 0;
}