Changeset 986:e997802b855c in lemon-0.x for src/work/alpar/f_ed_ka.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/alpar/f_ed_ka.h
r921 r986 85 85 c.get(tree.get(t))-f.get(tree.get(t)) : f.get(tree.get(t)); 86 86 //FIXME: I would need 'G.opposite(e,n)' 87 gn = visited.get(t)==1 ? G. tail(tree.get(t)) : G.head(tree.get(t));87 gn = visited.get(t)==1 ? G.source(tree.get(t)) : G.target(tree.get(t)); 88 88 while(gn!=s) if(visited.get(gn)==1) 89 89 { 90 90 //FIXME: nonstandard gcc extension! 91 91 aug_val <?= c.get(tree.get(gn))-f.get(tree.get(gn)); 92 gn=G. tail(tree.get(gn));92 gn=G.source(tree.get(gn)); 93 93 } 94 94 else { 95 95 //FIXME: nonstandard gcc extension! 96 96 aug_val <?= f.get(tree.get(gn)); 97 gn=G. head(tree.get(gn));97 gn=G.target(tree.get(gn)); 98 98 } 99 99 … … 103 103 { 104 104 f.set(tree.get(gn),f.get(tree.get(gn))+aug_val); 105 gn=G. tail(tree.get(gn));105 gn=G.source(tree.get(gn)); 106 106 } 107 107 else { 108 108 f.set(tree.get(gn),f.get(tree.get(gn))-aug_val); 109 gn=G. head(tree.get(gn));109 gn=G.target(tree.get(gn)); 110 110 } 111 111
Note: See TracChangeset
for help on using the changeset viewer.