Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Compilation instructions

Dependencies

  • LEMON 1.3
  • ILOG CPLEX (>= 12.0)
  • OGDF (v. 2015.05)

Compiling

Get heinz from github:

git clone <HTTPS clone URL (see on the right side of this page)>

First, LEMON 1.3 needs to be installed:

wget http://lemon.cs.elte.hu/pub/sources/lemon-1.3.tar.gz
tar xvzf lemon-1.3.tar.gz
cd lemon-1.3
cmake -DCMAKE_INSTALL_PREFIX=~/lemon

Note: On Mac OS, comment out the following two lines.

#ADD_SUBDIRECTORY(demo)
#ADD_SUBDIRECTORY(tools)

On earlier Mac OS versions also add the code below at line 159 in CMakeLists.txt.

if( ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
  set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++ " )
endif()

Finally, run

make install

You can remove the LEMON sources now, i.e., rm -rf lemon-1.3.

Next, OGDF needs to be installed:

wget http://www.ogdf.net/lib/exe/fetch.php/tech:ogdf-snapshot-2018-03-28.zip
unzip tech\:ogdf.v2012.07.zip
cd OGDF-snapshot
cmake .
make -j8

You can remove the OGDF sources now, i.e., rm -rf OGDF-snapshot.

Next, Heinz can be compiled. Execute the following commands from within the heinz directory:

mkdir build
cd build
cmake ..
make

In case auto-detection of LEMON, OGDF or CPLEX fails, do

cmake \
-DLIBLEMON_ROOT=~/lemon \
-DLIBOGDF_ROOT=~/root \
-DCPLEX_INC_DIR=~/ILOG/cplex/include/ \
-DCPLEX_LIB_DIR=~/ILOG/cplex/lib/x86-64_osx/static_pic \
-DCONCERT_LIB_DIR=~/ILOG/concert/lib/x86-64_osx/static_pic \
-DCONCERT_INC_DIR=~/ILOG/concert/include/ ..

Running heinz

To run heinz on the test instances:

./heinz -n ../data/test/NodesPCST.txt -e ../data/test/EdgesPCST.txt

Or do:

make check

To run heinz on the DIMACS MWCS instances, do:

./heinz -stp ../data/DIMACS/mwcs/ACTMOD/HCMV.stp

For the PCST DIMACS instances use:

./heinz -stp-pcst ../data/DIMACS/pcst/PCSPG-JMP/K100.2.stp

About

Single species module discovery

Resources

License

You can’t perform that action at this time.