kruskalbox.cc
changeset 149 930e838ad5b6
parent 116 2bd795bb9984
child 174 95872af46fc4
equal deleted inserted replaced
6:9b2fd2f16d7c 7:fe8f9d27bf67
    14      (edgemapcbts[INPUT])->get_active_text()!="" &&
    14      (edgemapcbts[INPUT])->get_active_text()!="" &&
    15      (edgemapcbts[OUTPUT])->get_active_text()!=""
    15      (edgemapcbts[OUTPUT])->get_active_text()!=""
    16      )
    16      )
    17     {
    17     {
    18 
    18 
    19       Graph g=mapstorage->graph;
    19       const Graph &g=mapstorage->graph;
    20       Graph::EdgeMap<double> * inputmap=
    20       Graph::EdgeMap<double> * inputmap=
    21 	((mapstorage->edgemap_storage)[(edgemapcbts[INPUT])->get_active_text()]);
    21 	((mapstorage->edgemap_storage)[(edgemapcbts[INPUT])->get_active_text()]);
    22       Graph::EdgeMap<bool> outputmap(g);
    22       Graph::EdgeMap<bool> outputmap(g);
    23       double res=kruskal(g, *inputmap, outputmap);
    23       double res=kruskal(g, *inputmap, outputmap);
    24 
    24