Installing Graaf on your project is easy! Simply copy the graaflib
directory to your project and add it to your include path. For more details or alternative installation methods, take a look at our installation guide.
-
Copy
graaflip
to your project. -
Before compiling, add the directory to your include path.
# For C compiler export C_INCLUDE_PATH="/full/path/to/include/graaflib/:$C_INCLUDE_PATH" # For Cpp compiler export CPLUS_INCLUDE_PATH="/full/path/to/include/graaflib/:$CPLUS_INCLUDE_PATH"
Or in CMake:
include_directories("graaf/src/graaflib")
-
Include the graaf header in your sources.
#include <graaflib/directed_graph.h>