Changeset 1092:dceba191c00d in lemon-main for test
- Timestamp:
- 08/09/13 11:28:17 (11 years ago)
- Branch:
- default
- Children:
- 1093:fb1c7da561ce, 1165:e0ccc1f0268f
- Phase:
- public
- Location:
- test
- Files:
-
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
test/adaptors_test.cc
r1084 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 095 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/arc_look_up_test.cc
r993 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 095 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 69 69 std::istringstream lgfs(lgf); 70 70 DigraphReader<ListDigraph>(graph, lgfs).run(); 71 71 72 72 AllArcLookUp<ListDigraph> lookup(graph); 73 73 74 74 int numArcs = countArcs(graph); 75 75 76 76 int arcCnt = 0; 77 77 for(ListDigraph::NodeIt n1(graph); n1 != INVALID; ++n1) 78 78 for(ListDigraph::NodeIt n2(graph); n2 != INVALID; ++n2) 79 79 for(ListDigraph::Arc a = lookup(n1, n2); a != INVALID; 80 81 80 a = lookup(n1, n2, a)) 81 ++arcCnt; 82 82 check(arcCnt==numArcs, "Wrong total number of arcs"); 83 83 -
test/bellman_ford_test.cc
r1085 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/bfs_test.cc
r1084 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/bpgraph_test.cc
r1026 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 114 114 BpGraph G; 115 115 RedNode 116 n1 = G.addRedNode(), n4 = G.addRedNode(); 116 n1 = G.addRedNode(), n4 = G.addRedNode(); 117 117 BlueNode 118 118 n2 = G.addBlueNode(), n3 = G.addBlueNode(); … … 162 162 BpGraph G; 163 163 RedNode 164 n1 = G.addRedNode(), n4 = G.addRedNode(); 164 n1 = G.addRedNode(), n4 = G.addRedNode(); 165 165 BlueNode 166 166 n2 = G.addBlueNode(), n3 = G.addBlueNode(); … … 217 217 n2 = G.addBlueNode(), 218 218 n3 = G.addBlueNode(); 219 Edge 219 Edge 220 220 e1 = G.addEdge(n1, n2), 221 221 e2 = G.addEdge(n1, n3); -
test/circulation_test.cc
r1084 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/connectivity_test.cc
r1091 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/dfs_test.cc
r1086 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 224 224 check(dfs.run(s1,t1) && dfs.reached(t1),"Node 3 is reachable from Node 6."); 225 225 } 226 226 227 227 { 228 228 NullMap<Node,Arc> myPredMap; -
test/digraph_test.cc
r1085 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/dijkstra_test.cc
r1084 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/edge_set_test.cc
r1084 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/euler_test.cc
r1084 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 103 103 Digraph::Node n = d.addNode(); 104 104 ::lemon::ignore_unused_variable_warning(n); 105 105 106 106 checkDiEulerIt(d); 107 107 checkDiEulerIt(g); -
test/fractional_matching_test.cc
r1085 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/gomory_hu_test.cc
r1084 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/graph_copy_test.cc
r1026 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 095 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 54 54 } 55 55 } 56 56 57 57 // Test digraph copy 58 58 GR to; … … 73 73 nodeCrossRef(ncr).arcCrossRef(ecr). 74 74 node(fn, tn).arc(fa, ta).run(); 75 75 76 76 check(countNodes(from) == countNodes(to), "Wrong copy."); 77 77 check(countArcs(from) == countArcs(to), "Wrong copy."); … … 101 101 // Test repeated copy 102 102 digraphCopy(from, to).run(); 103 103 104 104 check(countNodes(from) == countNodes(to), "Wrong copy."); 105 105 check(countArcs(from) == countArcs(to), "Wrong copy."); … … 204 204 // Test repeated copy 205 205 graphCopy(from, to).run(); 206 206 207 207 check(countNodes(from) == countNodes(to), "Wrong copy."); 208 208 check(countEdges(from) == countEdges(to), "Wrong copy."); … … 367 367 // Test repeated copy 368 368 bpGraphCopy(from, to).run(); 369 369 370 370 check(countNodes(from) == countNodes(to), "Wrong copy."); 371 371 check(countRedNodes(from) == countRedNodes(to), "Wrong copy."); -
test/graph_test.cc
r1084 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/graph_test.h
r1027 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 095 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/hao_orlin_test.cc
r1084 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/heap_test.cc
r948 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 095 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/lgf_reader_writer_test.cc
r1030 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 386 386 writer.arcMap("arc_map1", arc_map); 387 387 writer.arcMap("arc_map2", arc_map, WriterConverter()); 388 writer.node("node", n2); 388 writer.node("node", n2); 389 389 writer.edge("edge", e1); 390 390 writer.arc("arc", graph.direct(e1, false)); … … 493 493 writer.arcMap("arc_map2", arc_map, WriterConverter()); 494 494 writer.node("node", n); 495 writer.redNode("red_node", rn1); 495 writer.redNode("red_node", rn1); 496 496 writer.blueNode("blue_node", bn2); 497 497 writer.edge("edge", e1); -
test/lgf_test.cc
r954 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 15 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 64 64 65 65 66 int main() 66 int main() 67 67 { 68 68 { 69 ListDigraph d; 69 ListDigraph d; 70 70 ListDigraph::Node s,t; 71 71 ListDigraph::ArcMap<int> label(d); … … 94 94 95 95 { 96 ListDigraph d; 96 ListDigraph d; 97 97 std::istringstream input(test_lgf_nomap); 98 98 digraphReader(d, input). … … 111 111 112 112 { 113 ListDigraph d; 113 ListDigraph d; 114 114 std::istringstream input(test_lgf_bad1); 115 115 bool ok=false; … … 118 118 run(); 119 119 } 120 catch (FormatError&) 120 catch (FormatError&) 121 121 { 122 122 ok = true; … … 140 140 141 141 { 142 ListDigraph d; 142 ListDigraph d; 143 143 std::istringstream input(test_lgf_bad2); 144 144 bool ok=false; -
test/lp_test.cc
r1078 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 095 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/maps_test.cc
r1086 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/matching_test.cc
r1084 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/max_cardinality_search_test.cc
r955 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 68 68 ProcMap proc; 69 69 HeapCrossRef crossref(g); 70 70 71 71 typedef MaxCardinalitySearch<Digraph,CapMap> 72 72 ::SetCapacityMap<CapMap> … … 82 82 MaxCardType::Heap& heap = const_cast<MaxCardType::Heap&>(heap_const); 83 83 maxcard.heap(heap,crossref); 84 84 85 85 maxcard.capacityMap(cap).cardinalityMap(card).processedMap(proc); 86 86 -
test/max_clique_test.cc
r918 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 55 55 "5 7 14\n" 56 56 "6 7 15\n"; 57 57 58 58 59 59 // Check with general graphs … … 63 63 typedef GrossoLocatelliPullanMc<GR> McAlg; 64 64 typedef McAlg::CliqueNodeIt CliqueIt; 65 65 66 66 // Basic tests 67 67 { … … 82 82 check(static_cast<GR::Node>(it1) == u && ++it1 == INVALID, 83 83 "Wrong CliqueNodeIt"); 84 84 85 85 GR::Node v = g.addNode(); 86 86 check(mc.run(rule) == McAlg::ITERATION_LIMIT, "Wrong termination cause"); … … 110 110 .nodeMap("max_clique", max_clique) 111 111 .run(); 112 112 113 113 McAlg mc(g); 114 114 mc.iterationLimit(50); … … 134 134 typedef GrossoLocatelliPullanMc<FullGraph> McAlg; 135 135 typedef McAlg::CliqueNodeIt CliqueIt; 136 136 137 137 for (int size = 0; size <= 40; size = size * 3 + 1) { 138 138 GR g(size); … … 157 157 GridGraph::NodeMap<char> map(g); 158 158 GrossoLocatelliPullanMc<GridGraph> mc(g); 159 159 160 160 mc.iterationLimit(100); 161 161 check(mc.run(rule) == mc.ITERATION_LIMIT, "Wrong termination cause"); … … 180 180 checkMaxCliqueFullGraph(GrossoLocatelliPullanMc<FullGraph>::DEGREE_BASED); 181 181 checkMaxCliqueFullGraph(GrossoLocatelliPullanMc<FullGraph>::PENALTY_BASED); 182 182 183 183 checkMaxCliqueGridGraph(GrossoLocatelliPullanMc<GridGraph>::RANDOM); 184 184 checkMaxCliqueGridGraph(GrossoLocatelliPullanMc<GridGraph>::DEGREE_BASED); 185 185 checkMaxCliqueGridGraph(GrossoLocatelliPullanMc<GridGraph>::PENALTY_BASED); 186 186 187 187 return 0; 188 188 } -
test/max_flow_test.cc
r1087 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 223 223 { 224 224 DIGRAPH_TYPEDEFS(SmartDigraph); 225 225 226 226 SmartDigraph g; 227 227 SmartDigraph::ArcMap<int> cap(g),iflow(g); … … 383 383 checkMaxFlowAlg<PType2, PreflowStartFunctions<PType2> >(); 384 384 initFlowTest(); 385 385 386 386 // Check EdmondsKarp 387 387 typedef EdmondsKarp<SmartDigraph, SmartDigraph::ArcMap<int> > EKType1; … … 391 391 392 392 initFlowTest(); 393 393 394 394 return 0; 395 395 } -
test/min_cost_arborescence_test.cc
r1084 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/min_cost_flow_test.cc
r877 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/min_mean_cycle_test.cc
r1012 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 211 211 checkMmcAlg<HowardMmc<GR, IntArcMap> >(gr, l3, c3, 0, 1); 212 212 checkMmcAlg<HowardMmc<GR, IntArcMap> >(gr, l4, c4, -1, 1); 213 213 214 214 // Howard with iteration limit 215 215 HowardMmc<GR, IntArcMap> mmc(gr, l1); -
test/nagamochi_ibaraki_test.cc
r1087 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/path_test.cc
r1044 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 095 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/radix_sort_test.cc
r1043 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 095 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 53 53 template<class T> 54 54 T listsort(typename T::iterator b, typename T::iterator e) 55 { 55 { 56 56 if(b==e) return T(); 57 57 typename T::iterator bn=b; -
test/suurballe_test.cc
r1084 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/time_measure_test.cc
r1083 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-20 095 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). -
test/tsp_test.cc
r1037 r1092 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 42 42 // check(checkMetricCost(g, constMap<Edge>(1)), "Wrong checkMetricCost()"); 43 43 // check(!checkMetricCost(g, constMap<Edge>(-1)), "Wrong checkMetricCost()"); 44 // 44 // 45 45 // FullGraph::EdgeMap<float> cost(g); 46 46 // for (NodeIt u(g); u != INVALID; ++u) { … … 65 65 bool checkTour(const FullGraph &gr, const Container &p) { 66 66 FullGraph::NodeMap<bool> used(gr, false); 67 67 68 68 int node_cnt = 0; 69 69 for (typename Container::const_iterator it = p.begin(); it != p.end(); ++it) { … … 73 73 ++node_cnt; 74 74 } 75 75 76 76 return (node_cnt == gr.nodeNum()); 77 77 } … … 80 80 bool checkTourPath(const FullGraph &gr, const Path<FullGraph> &p) { 81 81 FullGraph::NodeMap<bool> used(gr, false); 82 82 83 83 if (!checkPath(gr, p)) return false; 84 84 if (gr.nodeNum() <= 1 && p.length() != 0) return false; … … 182 182 } 183 183 } 184 184 185 185 check(alg.run() > 0, alg_name + ": Wrong total cost"); 186 186 … … 196 196 check(checkCost(g, path, cost, alg.tourCost()), 197 197 alg_name + ": Wrong tour cost"); 198 198 199 199 check(!Tolerance<double>().less(alg.tourCost(), opt2.run(alg.tourNodes())), 200 200 "2-opt improvement: Wrong total cost"); … … 203 203 check(checkCost(g, opt2.tourNodes(), cost, opt2.tourCost()), 204 204 "2-opt improvement: Wrong tour cost"); 205 205 206 206 check(!Tolerance<double>().less(alg.tourCost(), opt2.run(path)), 207 207 "2-opt improvement: Wrong total cost"); … … 213 213 } 214 214 215 // Algorithm class for Nearest Insertion 215 // Algorithm class for Nearest Insertion 216 216 template <typename CM> 217 217 class NearestInsertionTsp : public InsertionTsp<CM> { … … 224 224 }; 225 225 226 // Algorithm class for Farthest Insertion 226 // Algorithm class for Farthest Insertion 227 227 template <typename CM> 228 228 class FarthestInsertionTsp : public InsertionTsp<CM> { … … 235 235 }; 236 236 237 // Algorithm class for Cheapest Insertion 237 // Algorithm class for Cheapest Insertion 238 238 template <typename CM> 239 239 class CheapestInsertionTsp : public InsertionTsp<CM> { … … 246 246 }; 247 247 248 // Algorithm class for Random Insertion 248 // Algorithm class for Random Insertion 249 249 template <typename CM> 250 250 class RandomInsertionTsp : public InsertionTsp<CM> {
Note: See TracChangeset
for help on using the changeset viewer.