src/benchmark/hcube.cc
changeset 905 5be029d19c98
parent 840 10002fa8847a
child 921 818510fa3d99
     1.1 --- a/src/benchmark/hcube.cc	Wed Sep 22 12:42:19 2004 +0000
     1.2 +++ b/src/benchmark/hcube.cc	Thu Sep 23 14:40:45 2004 +0000
     1.3 @@ -66,10 +66,13 @@
     1.4      for(int i=0;i<dim*(1<<dim);i++) P();
     1.5      
     1.6      //  for(EdgeIt e(G);G.valid(e);G.next(e)) map[e]=P();
     1.7 -    for(int i=0;i<dim*(1<<dim);i++)
     1.8 +    Edge te;
     1.9 +    for(int i=0;i<dim*(1<<dim);i++) {
    1.10 +      te.setToId(((long long int)(i)*93505)%(dim*(1<<dim)));
    1.11        //    map[Edge(((long long int)(i)*2987)%(dim*(1<<dim)))]=P();
    1.12 -      map[Edge(((long long int)(i)*93505)%(dim*(1<<dim)))]=P();
    1.13 -  
    1.14 +      map[te]=P();
    1.15 +    }
    1.16 +    
    1.17  //     for(int i=0;i<(1<<dim);i++) {
    1.18  //       int mul= (1<<(numOfZeros(i,dim)/4));
    1.19  //       for(OutEdgeIt e(G,nodes[i]);G.valid(e);G.next(e))