-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.cpp
More file actions
36 lines (28 loc) · 769 Bytes
/
main.cpp
File metadata and controls
36 lines (28 loc) · 769 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
34
35
36
#include <src/network.h>
int main(int argc, char *argv[])
{
Network network;
string outputPath = "../outputFile.txt";
if (argc == 2) // just input file passed as command line argument
{
network.initialize(argv[1]);
}
else if (argc == 3) // input and output
{
network.initialize(argv[1]);
outputPath = argv[2];
}
else // none
{
cout << "Usage: main.o <input file path>"
" [<output file path>]\n";
return 4;
}
// start of the NIBLPA
if (network.computeNodeInfluence())
if (network.computeLabelInfluence())
if (network.computeNewLabels())
network.writeResultsToFile(outputPath);
// end of the NIBLPA
return 0;
}