-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathd3c_test.cpp
49 lines (46 loc) · 1.28 KB
/
d3c_test.cpp
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 "common.hpp"
#include "community.hpp"
#include "network.hpp"
#include <iostream>
int main(int argc, char **argv) {
if (argc == 1) {
PrintHelp();
return 0;
}
int network = atoi(argv[1]);
int num_comms = 2;
int triple_type = D3CS;
int cut_type = D3C_COND;
std::string name = NetworkStr(network);
std::cout << "TENSOR ---------" << std::endl;
{
Network net = GetNetwork(network, triple_type);
CommDetection comm(net, num_comms, TENSOR, cut_type, name);
comm.Run();
}
std::cout << "DIRLAP ---------" << std::endl;
{
Network net = GetNetwork(network, triple_type);
CommDetection comm(net, num_comms, DIRLAP, cut_type, name);
comm.Run();
}
std::cout << "LAP ---------" << std::endl;
{
Network net = GetNetwork(network, triple_type);
CommDetection comm(net, num_comms, LAP, cut_type, name);
comm.Run();
}
std::cout << "RANDOM ---------" << std::endl;
{
Network net = GetNetwork(network, triple_type);
CommDetection comm(net, num_comms, RANDOM, cut_type, name);
comm.Run();
}
std::cout << "ALAP ---------" << std::endl;
{
Network net = GetNetwork(network, triple_type);
CommDetection comm(net, num_comms, ASYMMETRIC_LAP, cut_type, name);
comm.Run();
}
std::cout << "END ---------" << std::endl;
}