COIN-OR::LEMON - Graph Library

Changeset 2242:16523135943d in lemon-0.x for benchmark/edge_lookup.cc


Ignore:
Timestamp:
10/14/06 17:26:05 (15 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2991
Message:

New random interface
Switching to the new interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/edge_lookup.cc

    r2240 r2242  
    33#include<vector>
    44#include<lemon/time_measure.h>
     5#include<lemon/random.h>
    56
    67using namespace lemon;
     
    101102  std::vector<Node> v;
    102103  for(int i=0;i<N;i++) v.push_back(g.addNode());
    103   for(int i=0;i<M;i++) g.addEdge(v[int(drand48()*N)],v[int(drand48()*N)]);
     104  for(int i=0;i<M;i++) g.addEdge(v[rnd[N]],v[rnd[N]]);
    104105
    105106//   {
Note: See TracChangeset for help on using the changeset viewer.