test/kruskal_test.cc
changeset 599 f63e87b9748e
parent 440 88ed40ad0d4f
     1.1 --- a/test/kruskal_test.cc	Sat Apr 18 21:54:30 2009 +0200
     1.2 +++ b/test/kruskal_test.cc	Tue Apr 21 10:34:49 2009 +0100
     1.3 @@ -99,16 +99,16 @@
     1.4    check(kruskal(G, edge_cost_map, tree_map)==10,
     1.5          "Total cost should be 10");
     1.6  
     1.7 -  edge_cost_map.set(e1, -10);
     1.8 -  edge_cost_map.set(e2, -9);
     1.9 -  edge_cost_map.set(e3, -8);
    1.10 -  edge_cost_map.set(e4, -7);
    1.11 -  edge_cost_map.set(e5, -6);
    1.12 -  edge_cost_map.set(e6, -5);
    1.13 -  edge_cost_map.set(e7, -4);
    1.14 -  edge_cost_map.set(e8, -3);
    1.15 -  edge_cost_map.set(e9, -2);
    1.16 -  edge_cost_map.set(e10, -1);
    1.17 +  edge_cost_map[e1] = -10;
    1.18 +  edge_cost_map[e2] = -9;
    1.19 +  edge_cost_map[e3] = -8;
    1.20 +  edge_cost_map[e4] = -7;
    1.21 +  edge_cost_map[e5] = -6;
    1.22 +  edge_cost_map[e6] = -5;
    1.23 +  edge_cost_map[e7] = -4;
    1.24 +  edge_cost_map[e8] = -3;
    1.25 +  edge_cost_map[e9] = -2;
    1.26 +  edge_cost_map[e10] = -1;
    1.27  
    1.28    vector<Edge> tree_edge_vec(5);
    1.29