blob: ca2e6344850f18ebecc0723818716e53f741ab8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#include <pgf/gd/ogdf/c/InterfaceFromOGDF.h>
#include <ogdf/layered/LongestPathRanking.h>
struct LongestPathRanking_script :
scripting::declarations,
scripting::factory<ogdf::LongestPathRanking>
{
ogdf::LongestPathRanking* make (scripting::run_parameters* parameters) {
using namespace ogdf;
LongestPathRanking* r = new LongestPathRanking;
parameters->configure_option ("LongestPathRanking.separateDeg0Layer",
&LongestPathRanking::separateDeg0Layer, *r);
parameters->configure_option ("LongestPathRanking.separateMultiEdges",
&LongestPathRanking::separateMultiEdges, *r);
parameters->configure_option ("LongestPathRanking.optimizeEdgeLength",
&LongestPathRanking::optimizeEdgeLength, *r);
parameters->configure_module ("AcyclicSubgraphModule",
&LongestPathRanking::setSubgraph, *r);
return r;
}
void declare (scripting::script s) {
using namespace scripting;
using namespace ogdf;
s.declare (key ("LongestPathRanking")
.documentation_in ("pgf.gd.doc.ogdf.layered.LongestPathRanking")
.set_module ("RankingModule", this));
s.declare (key ("LongestPathRanking.separateDeg0Layer")
.type ("boolean")
.initial ("true")
.documentation_in ("pgf.gd.doc.ogdf.layered.LongestPathRanking"));
s.declare (key ("LongestPathRanking.separateMultiEdges")
.type ("boolean")
.initial ("true")
.documentation_in ("pgf.gd.doc.ogdf.layered.LongestPathRanking"));
s.declare (key ("LongestPathRanking.optimizeEdgeLength")
.type ("boolean")
.initial ("true")
.documentation_in ("pgf.gd.doc.ogdf.layered.LongestPathRanking"));
}
};
|