From 8c8ef97f056e268b0d186a218e61e98df1df4733 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Tue, 3 Jan 2017 23:25:15 -0500 Subject: Parse args and input --- src/brandes.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/brandes.cc b/src/brandes.cc index b855750..7c7d529 100644 --- a/src/brandes.cc +++ b/src/brandes.cc @@ -1,5 +1,9 @@ +#include #include +#include "parse.h" +#include "graph.h" + int main(int argc, char *argv[]) { if (argc < 4) { std::cerr @@ -8,5 +12,13 @@ int main(int argc, char *argv[]) { return 1; } + int threads = std::stoi(argv[1]); + std::string input_file = argv[2]; + std::string output_file = argv[3]; + + Parser parser(input_file); + + Graph graph = parser.get_graph(); + return 0; } -- cgit v1.2.3