Revision 20756421 custompackages/graph-parser/src/bi_connected_components.cpp

View differences:

custompackages/graph-parser/src/bi_connected_components.cpp
50 50
    cout << "Calculate Traffic Matrix\n";
51 51
    CalculateTrafficMatrix();
52 52

  
53
    // Calculate Betweenness Centrality
54
    cout << "Calculate Betweenness Centrality\n";
55
    CalculateBetweennessCentrality();
56

  
53 57
    print();
54 58
}
55 59

  
......
98 102
    }
99 103
}
100 104

  
105
/* BETWEENNESS CENTRALITY */
106
void BiConnectedComponents::CalculateBetweennessCentrality() {
107
    for (int i = 0; i < num_of_bcc_; ++i) {
108
        BCCs[i].CalculateBetweennessCentrality();
109
    }
110
}
111

  
101 112
/* HELPERS */
102 113
int BiConnectedComponents::num_of_bcc() {
103 114
    if (num_of_bcc_ == -1) { // calculate it

Also available in: Unified diff