CB-Cities
-
Run
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release /path/to/CMakeLists.txt. -
Run
make clean && make -jN(where N is the number of cores).
-
To run the dijkstra shortest path
./sp ../sf.mtx, because the executablespwould be generated inside the build directory. -
Running just
./spwill run the shortest path for the sample graph whose output is:
5 dist 21.2
4 dist 20.7
6 dist 11.5
3 dist 9.1
1 dist 0
2 dist 7.5
-
Run
./sptest -s(for a verbose output) orctest -VV. -
Run
./sptest -lto see available test options
Requires Python3
- Create a virtual environment:
virtualenv envand activate:source env/bin/activate - Install dependencies:
pip3 install -r requirements.txtorpip install -r requirements.txt - Benchmark Dijkstra PQ vs iGraph:
python3 ./interface.py
Requires Python3
- Create a virtual environment:
virtualenv envand activate:source env/bin/activate - Install dependencies:
pip3 install -r requirements.txtorpip install -r requirements.txt - Benchmark Dijkstra PQ vs iGraph:
python3 ./benchmark_dijkstra.py