benchmark/swap_bipartite_bench.cc
changeset 2386 81b47fc5c444
parent 2242 16523135943d
child 2391 14a343be7a5a
     1.1 --- a/benchmark/swap_bipartite_bench.cc	Fri Mar 02 17:56:22 2007 +0000
     1.2 +++ b/benchmark/swap_bipartite_bench.cc	Fri Mar 02 18:04:28 2007 +0000
     1.3 @@ -42,19 +42,19 @@
     1.4        vector<LGraph::Node> laNodes;
     1.5        vector<LGraph::Node> lbNodes;  
     1.6        
     1.7 -      for (int i = 0; i < n; ++i) {
     1.8 +      for (int j = 0; j < n; ++j) {
     1.9          Node node = graph.addANode();
    1.10          aNodes.push_back(node);
    1.11          LGraph::Node lnode = lgraph.addANode();
    1.12          laNodes.push_back(lnode);
    1.13        }
    1.14 -      for (int i = 0; i < m; ++i) {
    1.15 +      for (int j = 0; j < m; ++j) {
    1.16          Node node = graph.addBNode();
    1.17          bNodes.push_back(node);
    1.18          LGraph::Node lnode = lgraph.addBNode();
    1.19          lbNodes.push_back(lnode);
    1.20        }
    1.21 -      for (int i = 0; i < e; ++i) {
    1.22 +      for (int j = 0; j < e; ++j) {
    1.23          int a,b;
    1.24  	Node aNode = aNodes[a=rnd[n]];
    1.25          Node bNode = bNodes[b=rnd[m]];