lemon/greedy_tsp.h
branch1.3
changeset 1112 b6bad215bccd
parent 1076 97d978243703
equal deleted inserted replaced
5:72bba401b65d 6:1cfdc65c4a46
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     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-2010
     5  * Copyright (C) 2003-2013
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     8  *
     9  * Permission to use, modify and distribute this software is granted
     9  * Permission to use, modify and distribute this software is granted
    10  * provided that this copyright notice appears in all copies. For
    10  * provided that this copyright notice appears in all copies. For
    65 
    65 
    66       const FullGraph &_gr;
    66       const FullGraph &_gr;
    67       const CostMap &_cost;
    67       const CostMap &_cost;
    68       Cost _sum;
    68       Cost _sum;
    69       std::vector<Node> _path;
    69       std::vector<Node> _path;
    70       
    70 
    71     private:
    71     private:
    72     
    72 
    73       // Functor class to compare edges by their costs
    73       // Functor class to compare edges by their costs
    74       class EdgeComp {
    74       class EdgeComp {
    75       private:
    75       private:
    76         const CostMap &_cost;
    76         const CostMap &_cost;
    77 
    77