summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/source/GreedyInsertHeuristic_script.h
blob: 4ab2675b5aab1c562ed6bac7f47d93275d33b86d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <pgf/gd/ogdf/c/InterfaceFromOGDF.h>
#include <ogdf/layered/GreedyInsertHeuristic.h>

struct GreedyInsertHeuristic_script :
  scripting::declarations,
  scripting::factory<ogdf::GreedyInsertHeuristic>
{
  
  ogdf::GreedyInsertHeuristic* make (scripting::run_parameters* parameters) {
    return new ogdf::GreedyInsertHeuristic;
  }
  
  void declare (scripting::script s) {
    using namespace scripting;
    s.declare (key ("GreedyInsertHeuristic")
	       .documentation_in ("pgf.gd.doc.ogdf.layered.GreedyInsertHeuristic")
	       .set_module ("TwoLayerCrossMin", this));
  }
};