COIN-OR::LEMON - Graph Library

source: glemon/kruskalbox.h

Last change on this file was 1:67188bd752db, checked in by Peter Hegyi <hegyi@…>, 16 years ago

SVN revision 3500 made compilable with Lemon 1.0.

File size: 1.6 KB
Line 
1/* -*- C++ -*-
2 *
3 * This file is a part of LEMON, a generic C++ optimization library
4 *
5 * Copyright (C) 2003-2006
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7 * (Egervary Research Group on Combinatorial Optimization, EGRES).
8 *
9 * Permission to use, modify and distribute this software is granted
10 * provided that this copyright notice appears in all copies. For
11 * precise terms see the accompanying LICENSE file.
12 *
13 * This software is provided "AS IS" with no warranty of any kind,
14 * express or implied, and with no claim as to its suitability for any
15 * purpose.
16 *
17 */
18
19#ifndef KRUSKALBOX_H
20#define KRUSKALBOX_H
21
22class AlgoBox;
23
24#include <all_include.h>
25#include <libgnomecanvasmm.h>
26#include <libgnomecanvasmm/polygon.h>
27
28///Digraphical interface to run Kruskal algorithm.
29
30///Child of \ref AlgoBox,
31///therefore the only task to do at implementation was to
32///
33///-call init function with correct parameters from correctly parametrized constructor
34///
35///-implement \ref build_box function
36///
37///-implement \ref run function
38class KruskalBox : public AlgoBox
39{
40  ///Shows result of Kruskal algorithm
41  Gtk::Label resultlabel;
42
43public:
44  ///Calls \ref AlgoBox::init function to initialize class properly, automatically.
45  KruskalBox(std::vector<std::string> t);
46
47  ///Prepare, run and postprocess Kruskal algorithm.
48
49  ///\ref glemon works only with maps filled with double values
50  ///at the moment. While Kruskal nedds a bool map as output.
51  ///As postprocess this bool map should be transformed to
52  ///double map.
53  void run();
54
55  ///Builds the digraphical design of the interface.
56  void build_box();
57};
58#endif //KRUSKALBOX_H
Note: See TracBrowser for help on using the repository browser.