GrasT is a C++ implementation of some streaming graph algorithms. Currently, GraST implements two graph problems: 1) approximate maximum weight matching and 2) approximate minimum weight edge cover. GraST supports two ways to simulate streams: 1) edge read one by one from a matrix market (MTX) format file, which is used to report memory and overall runtime performance, and 2) read all the edges from a file (only support mtx format for now) and then stream from memory, which is used to compare the algorithmic time to the offline algorithms. Please see the following paper for details on the implementation and results for streaming matching and edge cover. Also, if you use GraST, please cite this paper.
@InProceedings{ferdous_et_al:LIPIcs.SEA.2024.12,
author = {Ferdous, S M and Pothen, Alex and Halappanavar, Mahantesh},
title = {{Streaming Matching and Edge Cover in Practice}},
booktitle = {22nd International Symposium on Experimental Algorithms (SEA 2024)},
pages = {12:1--12:22},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-325-6},
ISSN = {1868-8969},
year = {2024},
volume = {301},
editor = {Liberti, Leo},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.SEA.2024.12},
URN = {urn:nbn:de:0030-drops-203773},
doi = {10.4230/LIPIcs.SEA.2024.12},
annote = {Keywords: Matching, Edge Cover, Semi-Streaming Algorithm, Parallel Algorithms, Algorithm Engineering}
}
The src directory contains the implementation of the streaming matching, edge covering, and few auxiliary algorithms. The StreamMatch.cc source file implements two semi-streaming matching algorithms: The
- Clone the GrasT github repo
git clone https://github.com/smferdous1/GraST-copy.git
- Create a build directory and change current directory to the build one:
mkdir -p build && cd build
- Generate the make files:
cmake ..
- Generate the binaries:
make
This should create several binaries in the build/apps
directory. The stmatch and stec are the two binaries that can be used to execte the streaming matching and edge covering algorithms, respectively. Executing these binaires with -h flag provides with detailed description of the usage.
[1] Joan Feigenbaum, Sampath Kannan, Andrew McGregor, Siddharth Suri, and Jian Zhang. On graph problems in a semi-streaming model. Theor. Comput. Sci., 348(2-3):207–216, 2005. doi:10.1016/j.tcs.2005.09.013.
[2] Ami Paz and Gregory Schwartzman. A (2 + ε)-approximation for maximum weight matching in the semi-streaming model. In Proceedings of the ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2153–2161, 2017
Please contact S M Ferdous ([email protected] or [email protected]) if you have any questions!