This library supports maximum clique finding, minimum clique partitioning (aka minimum vertex coloring) for undirected graph.
g++ 4.8.2 or later.
** 1. src/: ** Contains source files for three classes: Graph, Clique, VertexColor.
** 2. test/: **
Contains a simple test program (test.cpp
) for Clique and VertexColor.
test.cpp can be considered as a sample program
** 3. target/: **
The static library (libngclique.a
) file will be put here after a successful 'make'.
**4. Makefile **
** Build static library **
make
** 4. Build test **
make test
bin/test
Assume that you are developing your own project, and you want to use this library.
Also, all your source code is put in src/
.
-
Put
Graph.*
,Clique.*
, andVertexColor.*
in yourheaders/
directory. -
Put
libngclique.a
in yourlib/
directory. -
Refer to
test.cpp
to see how to use this library. Basically, everything is underngclique
namespace. -
Compile:
g++ -static your_program.cpp' -L /lib/ -l ngclique -o your_executable_file