Skip to content
Snippets Groups Projects

Minor changes

Open Gianluca Rossi requested to merge grossi/ptspar:dev into main
+ 8
2
@@ -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
```
Loading