Revision 33e5ad95 custompackages/graph-parser/src/main.cpp

View differences:

custompackages/graph-parser/src/main.cpp
24 24
    gm.print();
25 25
}
26 26

  
27
void default_run(string filepath, int input_type, bool is_weighted_graph, bool targets_inclusion) {
27
void default_run(string filepath, int input_type, bool is_weighted_graph, bool endpoints_inclusion) {
28 28
    // input_files = [(filepath, input_type)]
29 29
    // input_type = 1 ==> edges file
30 30
    // input_type = 2 ==> simple json file
......
49 49

  
50 50
    // Calculate Betweenness Centrality
51 51
    cout << "Calculate Betweenness Centrality\n";
52
    bcc.CalculateBetweennessCentrality(targets_inclusion);
52
    bcc.CalculateBetweennessCentrality(endpoints_inclusion);
53 53
    // bcc.print();
54 54

  
55 55
    string filename;
......
77 77
    // Example: ./main simple.edges 1 true true
78 78

  
79 79
    bool is_weighted_graph = true;
80
    bool targets_inclusion = true;
80
    bool endpoints_inclusion = true;
81 81
    string filepath;
82 82
    int input_type;
83 83
    string argument;
......
95 95
        if (argc > 4) {
96 96
           argument = string(argv[4]);
97 97
            if (argument.compare("false") == 0) {
98
                targets_inclusion = false;
98
                endpoints_inclusion = false;
99 99
            }
100 100
        }
101 101
    }
102 102

  
103
    default_run(filepath, input_type, is_weighted_graph, targets_inclusion);
103
    default_run(filepath, input_type, is_weighted_graph, endpoints_inclusion);
104 104

  
105 105
    cout << "is weighted graph  = " << is_weighted_graph << endl;
106 106
    return 0;

Also available in: Unified diff