Changeset 986:e997802b855c in lemon-0.x for src/work/athos/old
- 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/athos/old/minlengthpaths.h
r921 r986 54 54 55 55 ValueType operator[](typename ResGraphType::Edge e) const { 56 //if ( (1-2*rev[e])*ol[e]-(pot[G. head(e)]-pot[G.tail(e)] ) <0 ){56 //if ( (1-2*rev[e])*ol[e]-(pot[G.target(e)]-pot[G.source(e)] ) <0 ){ 57 57 // std::cout<<"Negative length!!"<<std::endl; 58 58 //} 59 return (1-2*rev[e])*ol[e]-(pot[G. head(e)]-pot[G.tail(e)]);59 return (1-2*rev[e])*ol[e]-(pot[G.target(e)]-pot[G.source(e)]); 60 60 } 61 61 … … 162 162 G.next(e); 163 163 } 164 n = G. head(e);164 n = G.target(e); 165 165 paths[j].push_back(e); 166 166 total_length += length[e];
Note: See TracChangeset
for help on using the changeset viewer.