LAGraph is a draft library plus a test harness for collecting algorithms that use GraphBLAS.
Currently, SuiteSparse:GraphBLAS v6.0.2 or later is required. However, use the latest stable release of SuiteSparse:GraphBLAS for best results.
Since LAGraph is a draft, it contains are many draft/experimental codes with known sub-par performance. Performance of the best methods is highly sensitive on which version of SuiteSparse:GraphBLAS is being used, as well. No one other than the authors of this code are aware of which methods are the best, and how to achieve that performance.
Thus, do not benchmark LAGraph on your own without asking the authors first.
To build do the following from the top level directory:
$ mkdir build
$ cd build
$ cmake ..
$ make [-j#]
$ make test
To compile with a non-default compiler:
$ CC=gcc-11 cmake ..
To compile with test coverage:
cd build
cmake -DCOVERAGE=1 .. ; make -j8 ; make test_coverage
The test coverage of the latest CI build is deployed to https://graphblas.github.io/LAGraph/.
Then open this file in your browser:
build/test_coverage/index.html
To run the GAP benchmarks, see the instructions in this file:
./src/benchmark/README.md
LAGraph contains the following files and folders:
CMakeLists.txt: a CMake script for compiling:
( cd build ; cmake .. ; make )
cmake: helper scripts for CMake to find GraphBLAS and to provide
test coverage
data: small test matrices for the continuous integration tests
deps: 3rd party dependencies
doc: documentation
include: contains the LAGraph.h and LAGraphX.h files
LICENSE: BSD 2-clause license
README.md: this file
src: stable source code for the LAGraph library
* algorithms: graph algorithms such as BFS, connected components,
centrality, etc
* utilities: read/write a graph from a file, etc
experimental*: draft code under development: do not benchmark without
asking the LAGraph authors first
* Algorithms: draft graph algorithms such as Maximal Independent Set
* Utilities: draft utilities
build: initially empty
To link against GraphBLAS, first install whatever GraphBLAS library you wish to use. LAGraph will use -lgraphblas and will include the GraphBLAS.h file from its installed location. Alternatively, the CMakeLists.txt script can use a relative directory:
../GraphBLAS: any GraphBLAS implementation.
So that LAGraph and GraphBLAS reside in the same parent folder. The include file for GraphBLAS will be assumed to appear in ../GraphBLAS/Include, and the compiled GraphBLAS library is assumed to appear in ../GraphBLAS/build. The CMake should find GraphBLAS, but if you use a GraphBLAS library that uses a different structure, then edit the CMakeLists.txt file to point to right location.
TODO ... list them here