A C++ implementation of a simple 2-Approximation algorithm for the Metric Traveling Salesman Problem.
- NetworKit (only c++-core, see here for further informations).
- gcc/g++ 8.x or higher
- C++ 17
- CMake 3.13
- Update CMakeList to link NetworKit library
- Create a building folder in the root directory e.g.
mkdir build
- Move in build directory and run
cmake ../
- Run
cmake --build .
./TSP path/to/your/graph/
TSP takes graph in edgelist format. Some sample graphs are in the samples directory.
- Claudia Di Marco
- Riccardo Mantini