diff --git a/README.md b/README.md index 751af029527bab671ca841d41cfa56133593256f..bb25f52f8b27e9cabc3c2f5fb54f308d86d01907 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,13 @@ ptSpar is a C++ program implementing a Neighborhood-Preserving Graph Sparsificat ## Compilation 1. **Install Boost Library:** Ensure the Boost Program Options library is installed on your system. -2. **Compilation Command:** In the source directory, compile using `g++ -std=c++11 main.cpp -o ptSpar -lboost_program_options`. +2. **Compilation Command:** Create a build directory and cd into it, and execute the following commands: + ```bash + cmake .. + ``` + ```bash + make + ``` ## Usage - **Basic Command Structure:** @@ -27,5 +33,5 @@ ptSpar is a C++ program implementing a Neighborhood-Preserving Graph Sparsificat ## Example ```bash -./ptSpar --input myGraph.txt --output_file compressedGraph.txt --directed true --algorithm Random --depth 2 --proportions 0.5 0.5 +./ptSpar --input myGraph.txt --output_file compressedGraph.txt --directed true --algorithm Random --depth 2 --proportions 0 0.5 0.5 ```