Changeset 2274:432d0469a87e in lemon0.x for benchmark
 Timestamp:
 10/30/06 17:19:18 (14 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@3037
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

benchmark/edge_lookup.cc
r2272 r2274 429 429 }; 430 430 431 class EL4432 {433 public:434 Graph &_g;435 EdgeLookUp4<Graph> _el;436 EL4(Graph &g) :_g(g), _el(g) {}437 void operator()()438 {439 Edge e;440 441 for(NodeIt v(_g);v!=INVALID;++v)442 for(NodeIt u(_g);u!=INVALID;++u)443 e=_el(u,v);444 }445 446 };447 448 class EL5449 {450 public:451 Graph &_g;452 EdgeLookUp5<Graph> _el;453 EL5(Graph &g) :_g(g), _el(g) {}454 void operator()()455 {456 Edge e;457 458 for(NodeIt v(_g);v!=INVALID;++v)459 for(NodeIt u(_g);u!=INVALID;++u)460 e=_el(u,v);461 }462 463 };431 // class EL4 432 // { 433 // public: 434 // Graph &_g; 435 // EdgeLookUp4<Graph> _el; 436 // EL4(Graph &g) :_g(g), _el(g) {} 437 // void operator()() 438 // { 439 // Edge e; 440 441 // for(NodeIt v(_g);v!=INVALID;++v) 442 // for(NodeIt u(_g);u!=INVALID;++u) 443 // e=_el(u,v); 444 // } 445 446 // }; 447 448 // class EL5 449 // { 450 // public: 451 // Graph &_g; 452 // EdgeLookUp5<Graph> _el; 453 // EL5(Graph &g) :_g(g), _el(g) {} 454 // void operator()() 455 // { 456 // Edge e; 457 458 // for(NodeIt v(_g);v!=INVALID;++v) 459 // for(NodeIt u(_g);u!=INVALID;++u) 460 // e=_el(u,v); 461 // } 462 463 // }; 464 464 465 465 int main(int, char**argv)
Note: See TracChangeset
for help on using the changeset viewer.