In a Nutshell
Projects using OGDF
Team & Contact
Recall that OGDF is a pure library, i.e., using OGDF is a two-step process: first, you have to build the library. Then you can use the library (by linking against it) within your own program.
makeMakefile.configfor your configuration (if necessary): check the [GENERAL] section.
makeMakefile.shto generate a suitable
maketo build the OGDF library (you may also call
make debugto generate a debuggable version).
You can adjust some configuration options by editing
makeMakefile.config before executing
makeMakefile.sh. These options are explained in
makeMakefile.config; here we discuss some interesting usage scenarios.
sharedLibCommand) to the corresponding call, e.g., to
defaultSolveroption in the
COINsection (default is COIN's
CLP, but you can also choose an external solver such as CPLEX or Gurobi). If you specify an external solver as default solver, it is not necessary to also specify it as external solver.
#* Default solver (one of CLP, SYM, CPX, GRB) defaultSolver = CPX #* External solvers (separated by semicolon) externalSolvers = CPX #* Additional include directories (separated by semicolon) solverIncludes = /somewhere/ILOG/cplex90/include/ilcplex
If you want to use the OGDF library in your own projects, proceed as follows.
-Icompiler option). This is the
includedirectory of the OGDF installation which contains the directories
_release/libOGDF.a, etc.). You can set the path to the library with the
The following example calls compiles a source file
test.cpp and links it against the release versions of OGDF and COIN (assuming OGDF is installed in OGDF_INSTALL_DIR):
/include -O2 test.cpp -o test -LOGDF_INSTALL_DIR
/_release -lOGDF -lCOIN -pthread
It is also possible to create the source code documentation directly from the source files if you have Doxygen installed. You will also need to have LaTeX and Ghostscript installed so that Doxygen can create images from formulas. To build the OGDF HTML documentation, type
in the root directory of the OGDF installation. The documentation will then be written to