-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
45 lines (37 loc) · 971 Bytes
/
main.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
#include <iostream>
#include <fstream>
#include <cstdio>
#include <stdlib.h>
#include "truss_detection.h"
#include "truss_search.h"
using namespace std;
void truss_detection ( string path, string model, int w )
{
k_truss_detection *app = new k_truss_detection();
app -> truss_decomposition( path, model, w );
delete app;
}
void truss_search ( string path )
{
k_truss_search* app = new k_truss_search();
app -> truss_search( path );
delete app;
}
void topr_cpt ( string path, int k, int r )
{
top_r_k_truss * app = new top_r_k_truss();
app -> find_top_r_k_truss ( path, k, r );
delete app;
}
int main()
{
int k = 4;
int r = 6;
int w = 0;
string model = "simple";
string path = "datapath";
//truss_detection( path, model, w );
//truss_search( path ); //in k_truss_search function, we can choose different models
topr_cpt( path, k, r );
return 0;
}