In order to run the project, you need to follow this guide. In the project directory:
mkdir output/ mkdir build/
cd build cmake ..
cmake --build .
./main
To execute the batch mode, in the menu follow this guide:
- Select Batch mode
- ../../input/input.txt
- ../../output/output.txt
This was the way to read and create the files because the program is in the build folder.
Also, the main.cpp file is reading the large data set given by the professor. But the simple example can also be tested by changing the path of the files:
- file_reader.readLocations("../code/tests/LocSample.csv", graph);
- file_reader.readDistances("../code/tests/DisSample.csv", graph);