Revision 946f4f73 custompackages/graph-parser/src/centrality.cpp

View differences:

custompackages/graph-parser/src/centrality.cpp
4 4

  
5 5
#include "centrality.h"
6 6

  
7
void simpleBetweennessCentrality(Graph g, string fileSuffix) {
7
void simpleBetweennessCentrality(const Graph &g, string fileSuffix) {
8 8
    // One way to create centrality_map
9 9
    //    boost::shared_array_property_map<double, boost::property_map<Graph, vertex_index_t>::const_type>
10 10
    //            centrality_map(num_vertices(g), get(boost::vertex_index, g));
......
68 68
}
69 69

  
70 70

  
71
void writeBetweennessCentrality(Graph &g, std::vector<double> v_centrality_vec, string fileSuffix) {
71
void writeBetweennessCentrality(const Graph &g, std::vector<double> v_centrality_vec, string fileSuffix) {
72 72
    cout << "XXX Writing to File";
73 73
    string filePath = "../output/boost_" + fileSuffix + ".csv";
74 74
    ofstream outFile(filePath);

Also available in: Unified diff