hegyi@1: /* -*- C++ -*- hegyi@1: * hegyi@1: * This file is a part of LEMON, a generic C++ optimization library hegyi@1: * hegyi@1: * Copyright (C) 2003-2006 hegyi@1: * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport hegyi@1: * (Egervary Research Group on Combinatorial Optimization, EGRES). hegyi@1: * hegyi@1: * Permission to use, modify and distribute this software is granted hegyi@1: * provided that this copyright notice appears in all copies. For hegyi@1: * precise terms see the accompanying LICENSE file. hegyi@1: * hegyi@1: * This software is provided "AS IS" with no warranty of any kind, hegyi@1: * express or implied, and with no claim as to its suitability for any hegyi@1: * purpose. hegyi@1: * hegyi@1: */ hegyi@1: hegyi@1: #ifndef KRUSKALBOX_H hegyi@1: #define KRUSKALBOX_H hegyi@1: hegyi@1: class AlgoBox; hegyi@1: hegyi@1: #include hegyi@1: #include hegyi@1: #include hegyi@1: hegyi@1: ///Digraphical interface to run Kruskal algorithm. hegyi@1: hegyi@1: ///Child of \ref AlgoBox, hegyi@1: ///therefore the only task to do at implementation was to hegyi@1: /// hegyi@1: ///-call init function with correct parameters from correctly parametrized constructor hegyi@1: /// hegyi@1: ///-implement \ref build_box function hegyi@1: /// hegyi@1: ///-implement \ref run function hegyi@1: class KruskalBox : public AlgoBox hegyi@1: { hegyi@1: ///Shows result of Kruskal algorithm hegyi@1: Gtk::Label resultlabel; hegyi@1: hegyi@1: public: hegyi@1: ///Calls \ref AlgoBox::init function to initialize class properly, automatically. hegyi@1: KruskalBox(std::vector t); hegyi@1: hegyi@1: ///Prepare, run and postprocess Kruskal algorithm. hegyi@1: hegyi@1: ///\ref glemon works only with maps filled with double values hegyi@1: ///at the moment. While Kruskal nedds a bool map as output. hegyi@1: ///As postprocess this bool map should be transformed to hegyi@1: ///double map. hegyi@1: void run(); hegyi@1: hegyi@1: ///Builds the digraphical design of the interface. hegyi@1: void build_box(); hegyi@1: }; hegyi@1: #endif //KRUSKALBOX_H