Revision 946f4f73

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);
custompackages/graph-parser/src/centrality.h
10 10
#include <boost/graph/betweenness_centrality.hpp>
11 11
#include "common.h"
12 12

  
13
void simpleBetweennessCentrality(Graph g, string fileSuffix);
14
void writeBetweennessCentrality(Graph &g, std::vector<double> v_centrality_vec, string fileSuffix);
13
void simpleBetweennessCentrality(const Graph &g, string fileSuffix);
14
void writeBetweennessCentrality(const Graph &g, std::vector<double> v_centrality_vec, string fileSuffix);
15 15

  
16 16
#endif //GRAPH_PARSER_CENTRALITY_H

Also available in: Unified diff