-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathtripartite_flow.cpp
More file actions
33 lines (29 loc) · 879 Bytes
/
tripartite_flow.cpp
File metadata and controls
33 lines (29 loc) · 879 Bytes
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
#include "common.hpp"
#include "community.hpp"
#include "network.hpp"
#include <iostream>
int main(int argc, char **argv) {
int num_comms = 2;
int triple_type = D3CS_NOBACK;
int cut_type = BIPARTITE;
std::string name = "tripartite_flow";
std::cout << "DIRLAP ---------" << std::endl;
{
Network net = Network("data", name, triple_type);
CommDetection comm(net, num_comms, DIRLAP, cut_type, name);
comm.Run();
}
std::cout << "D3C_ONLY ---------" << std::endl;
{
Network net = Network("data", name, triple_type);
CommDetection comm(net, num_comms, D3C_ONLY_DIRLAP, cut_type, name);
comm.Run();
}
std::cout << "TENSOR ---------" << std::endl;
{
Network net = Network("data", name, triple_type);
CommDetection comm(net, num_comms, TENSOR, cut_type, name);
comm.Run();
}
std::cout << "END ---------" << std::endl;
}