Turn off 32bit specific tests.
5 #include <lemon/smart_graph.h>
6 #include <lemon/list_graph.h>
8 #include <lemon/bpugraph_adaptor.h>
9 #include <lemon/bipartite_matching.h>
11 #include <lemon/graph_utils.h>
12 #include <lemon/graph_to_eps.h>
14 #include <lemon/time_measure.h>
17 using namespace lemon;
19 typedef SmartBpUGraph Graph;
20 typedef ListBpUGraph LGraph;
21 BPUGRAPH_TYPEDEFS(Graph);
30 static int seed = _urandom_init();
31 ignore_unused_variable_warning(seed);
32 return (int)(rand() / (1.0 + RAND_MAX) * n);
37 for (int k = 1; k < 100; ++k) {
40 int m = (100 - k) * 100;
44 Timer nt(false), st(false);
45 Timer lnt(false), lst(false);
47 for (int i = 0; i < s; ++i) {
52 vector<LGraph::Node> laNodes;
53 vector<LGraph::Node> lbNodes;
55 for (int i = 0; i < n; ++i) {
56 Node node = graph.addANode();
57 aNodes.push_back(node);
58 LGraph::Node lnode = lgraph.addANode();
59 laNodes.push_back(lnode);
61 for (int i = 0; i < m; ++i) {
62 Node node = graph.addBNode();
63 bNodes.push_back(node);
64 LGraph::Node lnode = lgraph.addBNode();
65 lbNodes.push_back(lnode);
67 for (int i = 0; i < e; ++i) {
69 Node aNode = aNodes[a=urandom(n)];
70 Node bNode = bNodes[b=urandom(m)];
71 graph.addEdge(aNode, bNode);
72 LGraph::Node laNode = laNodes[a];
73 LGraph::Node lbNode = lbNodes[b];
74 lgraph.addEdge(laNode, lbNode);
78 MaxBipartiteMatching<Graph> bpmatch(graph);
88 typedef SwapBpUGraphAdaptor<Graph> SGraph;
90 MaxBipartiteMatching<SGraph> bpmatch(sgraph);
99 MaxBipartiteMatching<LGraph> bpmatch(lgraph);
109 typedef SwapBpUGraphAdaptor<LGraph> SGraph;
110 SGraph sgraph(lgraph);
111 MaxBipartiteMatching<SGraph> bpmatch(sgraph);
121 cout << k * 100 << ' ' << nt.realTime() << ' ' << st.realTime()
122 << ' ' << lnt.realTime() << ' ' << lst.realTime()<< endl;