m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/brandes.cc
blob: 809ccd404cc578f4926ce714e6cb553920a66333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <fstream>
#include <iostream>

#include "parse.h"
#include "graph.h"

int main(int argc, char *argv[]) {
    if (argc < 4) {
        std::cerr
            << "USAGE: ./brandes <number-threads> <input-file> <output-file>"
            << std::endl;
        return 1;
    }

    int threads = std::stoi(argv[1]);
    std::string input_file = argv[2];
    std::string output_file = argv[3];

    Parser parser(input_file);

    const Graph &graph = parser.get_graph();

    return 0;
}