Skip to content

chenxiaoyu233/k-defective

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KDefective Command Line Parameter

optionmeaning/typeparameter
-rinput file (data file)input file’s name (path)
-woutput file (graph file)output file’s name (path)
-llog file (answer file)answer file’s name (path)
-OOperator Typesolve/generate/compare
-pprework flag
-ttime limit for algorithmtime in second
-aAlgorithm TypeBase/MADEC/RDS/IP
-DDataStructure used by the algorithmSet/Bitset
-kk in k-defectivean integer
–noDiamKill Diameter Reduction in “Base” algo
–noColorKill Color Reduction in “Base” algo
-nnumber of vertex in the random graphan integer
-dthe dense of the edges in random graphan float
-hhelp(not implement yet)
-Gthe type of graph the Program Readclq/graph/SNAP
-Mset the maximum size of clique in the graph by handan integer

Algorithms

There are 4 solvers : Base, MADEC, RDS, CPLEX. You could call any of them using -a option. Note that Base and MADEC all implement MADEC+ which has been described in the paper.

  • Base is the first version of implementation, which allows us to control its behavior explictly. e.g. We could use --noDiam or --noColor when we are using this implementation. This version is more readable. If you want to use MADEC instead of MADEC+, you could use this implementation and add --noDiam --noColor.
  • MADEC is a re-implementation of the Base, which optimizes the running time, but removes all the customizable parts.

Steps for Deployment

cmake .
make && make install

If you want to compile with the IP solver (CPLEX), you could first set the location of CPLEX in CMakeLists.txt, then type:

cmake -DIP_SOLVER=ON .
make && make install

And then you will get the executable file at ./Debug/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors