test/kruskal_test.cc
changeset 708 994c7df296c9
parent 440 88ed40ad0d4f
     1.1 --- a/test/kruskal_test.cc	Fri Nov 13 12:33:33 2009 +0100
     1.2 +++ b/test/kruskal_test.cc	Thu Dec 10 17:05:35 2009 +0100
     1.3 @@ -2,7 +2,7 @@
     1.4   *
     1.5   * This file is a part of LEMON, a generic C++ optimization library.
     1.6   *
     1.7 - * Copyright (C) 2003-2008
     1.8 + * Copyright (C) 2003-2009
     1.9   * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    1.10   * (Egervary Research Group on Combinatorial Optimization, EGRES).
    1.11   *
    1.12 @@ -99,16 +99,16 @@
    1.13    check(kruskal(G, edge_cost_map, tree_map)==10,
    1.14          "Total cost should be 10");
    1.15  
    1.16 -  edge_cost_map.set(e1, -10);
    1.17 -  edge_cost_map.set(e2, -9);
    1.18 -  edge_cost_map.set(e3, -8);
    1.19 -  edge_cost_map.set(e4, -7);
    1.20 -  edge_cost_map.set(e5, -6);
    1.21 -  edge_cost_map.set(e6, -5);
    1.22 -  edge_cost_map.set(e7, -4);
    1.23 -  edge_cost_map.set(e8, -3);
    1.24 -  edge_cost_map.set(e9, -2);
    1.25 -  edge_cost_map.set(e10, -1);
    1.26 +  edge_cost_map[e1] = -10;
    1.27 +  edge_cost_map[e2] = -9;
    1.28 +  edge_cost_map[e3] = -8;
    1.29 +  edge_cost_map[e4] = -7;
    1.30 +  edge_cost_map[e5] = -6;
    1.31 +  edge_cost_map[e6] = -5;
    1.32 +  edge_cost_map[e7] = -4;
    1.33 +  edge_cost_map[e8] = -3;
    1.34 +  edge_cost_map[e9] = -2;
    1.35 +  edge_cost_map[e10] = -1;
    1.36  
    1.37    vector<Edge> tree_edge_vec(5);
    1.38