-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme.txt
72 lines (58 loc) · 2.23 KB
/
Readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
matchbox is a package consists of implementations of exact and approximation algorithms for matching problems.
To compile:
go to the matchbox root directory and run "make" for the debug version or "make optimized" for the optimized one.
Additional preperation for Windows and Mac OS:
Windows:
Download the latest version of Cygwin from http://www.cygwin.com. View full list of packages.
Search for ‘make’ and ‘vim’ packages and install them. Installed packages should have status ‘Keep’ instead of ‘Skip’.
By default, the installer does not install these packages. The installer can be used to add packages to the existing installation.
Mac:
Install llvm with brew. In Makefile.gnu_32: Change all g++ to clang++.
Remove –lrt flags. Get version number of llvm: llvm-config –-version
Create a link for libomp.dylib:
cd /usr/local/lib
ln -s /usr/local/Cellar/llvm/<version number>/lib/libomp.dylib libomp.dylib
To run:
Go to examples/debug or examples/optimized and run an executable file without arguments you will see what the arguments need to be.
For example run ./BptMaxCard.
Input:
-The graph file must be in mtx format and for non-bipartite algorithm the mtx file must be symmetric.
-Vertex weights flie must be in the following format:
n
w(v1)
w(v2)
.
.
w(vn)
Where n is number of vertices and w(vi) is the weight of ith vertex.
Example 1:
./BptHalfVtxWght graphs/pds-50.mtx graphs/pds-50-vtxweights
Output:
reading graph file ...
done reading graph file
reading vertex weights file ...
done reading vertex weights file
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
computing matching ...
done computing matching
time: 0.254219 s
weight: 104210760.000000
card: 82835
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
==================================================
checking matching ...
done checking matching
Example 2:
./MaxCard graphs/de2010.mtx
Output:
reading graph file ...
done reading graph file
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
computing matching ...
done computing matching
time: 0.0650187 s
card: 11853
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
==================================================
checking matching ...
done checking matching