Changeset 1855:c72636dcf0bd in lemon-0.x for benchmark
- Timestamp:
- 12/07/05 16:43:44 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2423
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/graph-bench.cc
r1847 r1855 29 29 30 30 for(count=0;count<rat;count++) { 31 equ[count%rat]=G.addEdge(nodes[(count*p)%n],nodes[(count*p/n)%n]); 31 equ[int(count%rat)]=G.addEdge(nodes[int((count*p)%n)], 32 nodes[int((count*p/n)%n)]); 32 33 } 33 34 for(;(count%rat)||((count*p)%n)||((count*p/n)%n);count++) { 34 35 // if(!(count%1000000)) fprintf(stderr,"%d\r",count); 35 36 if(count%rat) G.erase(equ[count%rat]); 36 equ[count%rat]=G.addEdge(nodes[(count*p)%n],nodes[(count*p/n)%n]); 37 equ[int(count%rat)]=G.addEdge(nodes[int((count*p)%n)], 38 nodes[int((count*p/n)%n)]); 37 39 } 38 40 // std::cout << "Added " << count
Note: See TracChangeset
for help on using the changeset viewer.