benchmark/graph-bench.cc
changeset 2611 b526b87d8c2f
parent 2590 47c245b97199
equal deleted inserted replaced
7:c002c981a9f7 8:7eb181b9440e
    41   for(int i=0;i<n;i++) nodes[i]=G.addNode();
    41   for(int i=0;i<n;i++) nodes[i]=G.addNode();
    42   
    42   
    43   //Edge equ[rat];
    43   //Edge equ[rat];
    44   std::vector<Edge> equ(rat);
    44   std::vector<Edge> equ(rat);
    45   
    45   
    46   long int count;
    46   /// \bug There is no long long int type in C++98.
       
    47   long long int count;
    47   
    48   
    48   for(count=0;count<rat;count++) {
    49   for(count=0;count<rat;count++) {
    49     equ[int(count%rat)]=G.addEdge(nodes[int((count*p)%n)],
    50     equ[int(count%rat)]=G.addEdge(nodes[int((count*p)%n)],
    50 				  nodes[int((count*p/n)%n)]);
    51 				  nodes[int((count*p/n)%n)]);
    51   }
    52   }