Revision cb770240 custompackages/graph-parser/src/main.cpp

View differences:

custompackages/graph-parser/src/main.cpp
3 3
#include "utility.h"
4 4
#include "centrality.h"
5 5
#include "bi_connected_components.h"
6
#include "graph_manager.h"
6 7

  
7 8

  
8 9
void handleSimpleGraph() {
......
68 69
}
69 70

  
70 71
void testHeuristic(string filePath) {
71
    Graph g;
72
    readEdgeFile(filePath, g);
73
    outops::operator<<(cout, g);
74
    BiConnectedComponents bcc(g);
75
    // bcc.compute_weight();
76
    // bcc.findBetweennessCentrality();
77
    // bcc.printBetweennessCentrality();
78
    // bcc.print_weight();
79
    // bcc.print();
72
    GraphManager gm;
73
    readEdgeFileGraphManager(filePath, gm);
74
    BiConnectedComponents bcc(gm);
80 75
    cout << "DONE" << endl;
76
}
81 77

  
78
void testGraphManager(string filePath) {
79
    GraphManager gm;
80
    readEdgeFileGraphManager(filePath, gm);
81
    cout << gm;
82

  
83
    gm.ResetVerticesAndEdgesIndexMap();
84
    gm.print_v_index_map();
82 85

  
83 86
}
84 87

  
......
93 96
//    string complexJsonFilePath = "../input/jsoninfo_topo.json";
94 97
//    handleComplexJsonInput(complexJsonFilePath);
95 98

  
99
    // string simpleGraphFilePath = "../input/simple.edges";
100
    // testGraphManager(simpleGraphFilePath);
96 101

  
97 102
    string simpleGraphFilePath = "../input/simple.edges";
98 103
    testHeuristic(simpleGraphFilePath);
104

  
99 105
    return 0;
100 106
}

Also available in: Unified diff