Changeset 986:e997802b855c in lemon-0.x for src/work/jacint/preflow_res.h
- Timestamp:
- 11/13/04 13:53:28 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1376
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/jacint/preflow_res.h
r921 r986 103 103 for(res_graph.first(e,v); res_graph.valid(e); 104 104 res_graph.next(e)) { 105 Node w=res_graph. tail(e);105 Node w=res_graph.source(e); 106 106 if ( level[w] == n && w != s ) { 107 107 bfs_queue.push(w); … … 146 146 for(res_graph.first(e,s); res_graph.valid(e); 147 147 res_graph.next(e)) { 148 Node w=res_graph. head(e);148 Node w=res_graph.target(e); 149 149 if ( level[w] < n ) { 150 150 if ( excess[w] == 0 && w!=t ) { … … 191 191 for(res_graph.first(e,v); 192 192 res_graph.valid(e); res_graph.next(e)) { 193 Node u=res_graph. tail(e);193 Node u=res_graph.source(e); 194 194 if ( level[u] >= n ) { 195 195 bfs_queue.push(u); … … 222 222 for(res_graph.first(e,w); res_graph.valid(e); res_graph.next(e)) { 223 223 224 Node v=res_graph. head(e);224 Node v=res_graph.target(e); 225 225 if( lev > level[v] ) { 226 226 /*Push is allowed now*/ … … 401 401 OutEdgeIt e; 402 402 for(G.first(e,w) ; G.valid(e); G.next(e)) { 403 Node v=G. head(e);403 Node v=G.target(e); 404 404 if (!M[v] && flow[e] < capacity[e] ) { 405 405 queue.push(v); … … 410 410 InEdgeIt f; 411 411 for(G.first(f,w) ; G.valid(f); G.next(f)) { 412 Node v=G. tail(f);412 Node v=G.source(f); 413 413 if (!M[v] && flow[f] > 0 ) { 414 414 queue.push(v); … … 441 441 InEdgeIt e; 442 442 for(G.first(e,w) ; G.valid(e); G.next(e)) { 443 Node v=G. tail(e);443 Node v=G.source(e); 444 444 if (!M[v] && flow[e] < capacity[e] ) { 445 445 queue.push(v); … … 450 450 OutEdgeIt f; 451 451 for(G.first(f,w) ; G.valid(f); G.next(f)) { 452 Node v=G. head(f);452 Node v=G.target(f); 453 453 if (!M[v] && flow[f] > 0 ) { 454 454 queue.push(v);
Note: See TracChangeset
for help on using the changeset viewer.