Changeset 956:141f9c0db4a3 in lemon for lemon/howard_mmc.h
- Timestamp:
- 03/06/10 15:35:12 (15 years ago)
- Branch:
- default
- Children:
- 957:f802439d2b58, 959:38213abd2911, 1041:f112c18bc304
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/howard_mmc.h
r942 r956 1 /* -*- C++-*-1 /* -*- mode: C++; indent-tabs-mode: nil; -*- 2 2 * 3 * This file is a part of LEMON, a generic C++ optimization library 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 085 * Copyright (C) 2003-2010 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 122 122 { 123 123 public: 124 124 125 125 /// The type of the digraph 126 126 typedef typename TR::Digraph Digraph; … … 153 153 154 154 TEMPLATE_DIGRAPH_TYPEDEFS(Digraph); 155 155 156 156 // The digraph the algorithm runs on 157 157 const Digraph &_gr; … … 180 180 std::vector<Node>* _nodes; 181 181 typename Digraph::template NodeMap<std::vector<Arc> > _in_arcs; 182 182 183 183 // Queue used for BFS search 184 184 std::vector<Node> _queue; … … 186 186 187 187 Tolerance _tolerance; 188 188 189 189 // Infinite constant 190 190 const LargeCost INF; 191 191 192 192 public: 193 193 194 194 /// \name Named Template Parameters 195 195 /// @{ … … 229 229 typedef HowardMmc<GR, CM, SetPathTraits<T> > Create; 230 230 }; 231 231 232 232 /// @} 233 233 … … 335 335 init(); 336 336 findComponents(); 337 337 338 338 // Find the minimum cycle mean in the components 339 339 for (int comp = 0; comp < _comp_num; ++comp) { … … 446 446 _cycle_path->clear(); 447 447 } 448 448 449 449 // Find strongly connected components and initialize _comp_nodes 450 450 // and _in_arcs
Note: See TracChangeset
for help on using the changeset viewer.