Code for paper https://arxiv.org/abs/1802.02556
-
Julia version 0.6.0
-
Julia package Laplacians.jl which can be installed by
julia -e 'Pkg.add("Laplacians.jl")'
Execute command OPENBLAS_NUM_THREADS=1 julia -O3 test.jl data-dir algos k, where
-
data-diris the directory where the edges list files are. The algorithms will run on these files in lexicographical order of the file names. The result will be printed to both console and filedata-dir.txt. -
algosdenotes which algorithms to run.exactmeans running exact greedy,approxmeans running approx greedy, andbothmeans running both greedy algorithms (defaultboth). -
kis an integer, denotes the number of vertices to chose (default10). -
OPENBLAS_NUM_THREADS=1is to enforce the program to run on a single thread.
For example, OPENBLAS_NUM_THREADS=1 julia -O3 test.jl data exact 5
means running the exact greedy on networks in directory data/ and
choosing 5 vertices for each network. The result will be printed to
both console and data.txt.