Changeset 2136:4f64d6b3e9ec in lemon-0.x
- Timestamp:
- 07/14/06 11:37:48 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2850
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bipartite_matching.h
r2058 r2136 1326 1326 } 1327 1327 } 1328 Value bdistMax = 0; 1328 1329 1329 1330 while (!_heap->empty()) { … … 1339 1340 bdist[bnode] = bvalue; 1340 1341 bpred[bnode] = jt; 1342 } 1343 if (bvalue > bdistMax) { 1344 bdistMax = bvalue; 1341 1345 } 1342 1346 if (bnode_matching[bnode] != INVALID) { … … 1374 1378 if (bpred[it] != INVALID) { 1375 1379 bnode_potential[it] += bdist[it]; 1380 } else { 1381 bnode_potential[it] += bdistMax; 1376 1382 } 1377 1383 } … … 1381 1387 if (bpred[bnode] != INVALID) { 1382 1388 anode_potential[it] += bdist[bnode]; 1389 } else { 1390 anode_potential[it] += bdistMax; 1383 1391 } 1384 1392 }
Note: See TracChangeset
for help on using the changeset viewer.