Changeset 628:aa1804409f29 in lemon for lemon/min_cost_arborescence.h
- Timestamp:
- 04/14/09 10:35:38 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/min_cost_arborescence.h
r606 r628 294 294 } 295 295 } 296 _arc_order->set(minimum.arc, _dual_variables.size());296 (*_arc_order)[minimum.arc] = _dual_variables.size(); 297 297 DualVariable var(_dual_node_list.size() - 1, 298 298 _dual_node_list.size(), minimum.value); … … 336 336 } 337 337 } 338 _arc_order->set(minimum.arc, _dual_variables.size());338 (*_arc_order)[minimum.arc] = _dual_variables.size(); 339 339 DualVariable var(node_bottom, _dual_node_list.size(), minimum.value); 340 340 _dual_variables.push_back(var); … … 365 365 Node source = _heap->top(); 366 366 _heap->pop(); 367 _node_order->set(source, -1);367 (*_node_order)[source] = -1; 368 368 for (OutArcIt it(*_digraph, source); it != INVALID; ++it) { 369 369 if ((*_arc_order)[it] < 0) continue; … … 651 651 for (NodeIt it(*_digraph); it != INVALID; ++it) { 652 652 (*_cost_arcs)[it].arc = INVALID; 653 _node_order->set(it, -3);654 _heap_cross_ref->set(it, Heap::PRE_HEAP);653 (*_node_order)[it] = -3; 654 (*_heap_cross_ref)[it] = Heap::PRE_HEAP; 655 655 _pred->set(it, INVALID); 656 656 } 657 657 for (ArcIt it(*_digraph); it != INVALID; ++it) { 658 658 _arborescence->set(it, false); 659 _arc_order->set(it, -1);659 (*_arc_order)[it] = -1; 660 660 } 661 661 _dual_node_list.clear();
Note: See TracChangeset
for help on using the changeset viewer.