Skip to content

Implementation of branch and bound algorithm for maximum clique problem

Notifications You must be signed in to change notification settings

donfaq/max_clique

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Realisation of branch and bound algorithm for solving Maximum clique problem using greedy coloring heuristic to estimate upper bound and greedy clique heuristic for lower bound on each step.

Details: http://www.m-hikari.com/ams/ams-2014/ams-1-4-2014/mamatAMS1-4-2014-3.pdf

Instructions

This is Python 3.5.2 realization with usage of NetworkX library

To run script you should specify following parameters:

  • --path - path to DIMACS-format graph
  • --time - time limit in seconds
  • --test - path to folder with graphs, generates excel-table with results on exit. (still need to specify --path just for nothing)

Test results

Graph name #Nodes #Edges Found clique length Time (ms)
miles250.col 128 774 8 1.001
anna.col 138 986 11 355.994
homer.col 561 3258 13 1198.999
huck.col 74 602 11 70.997
le450_5a.col 450 5714 5 11773.576
le450_5b.col 450 5734 5 11867.003
le450_5c.col 450 9803 5 19642.002
le450_5d.col 450 9757 5 18900.578
le450_15b.col 450 8169 15 7223.001
le450_15c.col 450 16680 15 46407.516
le450_15d.col 450 16750 15 50872.791
le450_25a.col 450 8260 25 340.000
le450_25c.col 450 17343 25 44315.806
le450_25d.col 450 17425 25 40426.008
johnson8-2-4.clq 28 210 4 114.503
hamming6-4.clq 64 704 4 300.501
c-fat200-1.clq 200 1534 12 1389.498
c-fat200-2.clq 200 3235 24 1475.499
c-fat200-5.clq 200 8473 58 7305.004
c-fat500-1.clq 500 4459 14 5257.009
c-fat500-2.clq 500 9139 26 20467.029
c-fat500-5.clq 500 23191 64 52392.166
c-fat500-10.clq 500 46627 126 65.000

All this graphs are placed in samples folder.
More of them you can find here: http://mat.gsia.cmu.edu/COLOR/instances.html
Huge ones: http://iridia.ulb.ac.be/~fmascia/maximum_clique/DIMACS-benchmark#detC125.9

Releases

No releases published

Packages

No packages published

Languages