This project utilizes a dataset obtained from Stanford SNAP. The goal is to implement various graph algorithms, including BFS Distance, Strongly Connected Components, and Pagerank, on the provided dataset.
Check out our project presentation on YouTube: Project Demo
-
Create Build Directory:
mkdir build
-
Navigate to Build Directory:
cd build
-
CMake and Make:
cmake .. make
-
Choose Algorithms:
- In the
main.cpp
file, set the boolean variables totrue
for the algorithms you want to run.
- In the
-
Compile and Run:
- After building, use the following commands in the terminal:
./test/
- After building, use the following commands in the terminal:
-
Changing Input Data Path:
- Update the test data paths in the
tests/tests.cpp
file by modifying the relevant variables.
- Update the test data paths in the
-
Adjusting Algorithm Variables:
- In the
main.cpp
file, update the algorithm-specific variables to point to the correct input data paths.
- In the
main.cpp
: Function for Amazon test data.tests.cpp
: Test cases (testpr2
,testpr3
,test_data
).
main.cpp
: Test data.tests.cpp
: Test cases (testpr2
,testpr3
,test_data
).
main.cpp
: Function for Amazon test data.tests.cpp
: Test cases (testpr1
,testpr2
,testpr3
).
main.cpp
: Function for Amazon test data.tests.cpp
: Test cases (testpr1
,test_data
).