summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/planar/parameters.lua
blob: 603f2ee7cce30b6b79e6b033444dbc9ea93ef8b1 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
-- Imports
local declare = require("pgf.gd.interface.InterfaceToAlgorithms").declare

declare {
  key = "use pdp",
  type = "boolean",
  initial = "true",

  summary = [["
    Whether or not to use the Planar Drawing Postprocessing
    to improve the drawing.
  "]]
}

declare {
  key = "use sf",
  type = "boolean",
  initial = "true",

  summary = [["
    Whether or not to use the Sort and Flip Algorithm
    to improve the combinatorical embedding.
    "]]
}

declare {
  key = "grid spacing",
  type = "number",
  initial = "10",

  summary = [["
    If the |use pdp| option is not set,
    this sets the spacing of the grid used by the shift method.
    A bigger grid spacing will result in a bigger drawing.
  "]]
}

declare {
  key = "pdp cooling factor",
  type = "number",
  initial = "0.98",

  summary = [["
    This sets the cooling factor used by the Planar Drawing Postprocessing.
    A higher cooling factor can result in better quality of the drawing,
    but will increase the run time of the algorithm.
  "]]
}

declare {
  key = "start repulsive exponent",
  type = "number",
  initial = "2",

  summary = [["
    Start value of the exponent used in the calculation of all repulsive forces in PDP
  "]]
}

declare {
  key = "end repulsive exponent",
  type = "number",
  initial = "2",

  summary = [["
    End value of the exponent used in the calculation of all repulsive forces in PDP.
  "]]
}

declare {
  key = "start attractive exponent",
  type = "number",
  initial = "2",

  summary = [["
    Start value of the exponent used in PDP's calculation of the attractive force between
    nodes connected by an edge.
  "]]
}

declare {
  key = "end attractive exponent",
  type = "number",
  initial = "2",

  summary = [["
    End value of the exponent used in PDP's calculation of the attractive force between
    nodes connected by an edge.
  "]]
}

declare {
  key = "exponent change iterations",
  type = "number",
  initial = "1",

  summary = [["
    The number of iterations over which to modify the force exponents.
    In iteration one the exponents will have their start value and in iteration
    |exponent change iterations| they will have their end value.
  "]]
}

declare {
  key = "edge approach threshold",
  type = "number",
  initial = "0.3",

  summary = [["
    The maximum ration between the actual and the desired node-edge distance
    which is required to count an edge as stressed.
  "]]
}

declare {
  key = "edge stretch threshold",
  type = "number",
  initial = "1.5",

  summary = [["
    The minimum ration between the actual and the desired edge length
    which is required to count an edge as stressed.
  "]]
}

declare {
  key = "stress counter threshold",
  type = "number",
  initial = "30",

  summary = [["
    The number of iterations an edge has to be under stress before it will be subdivided.
  "]]
}

declare {
  key = "edge divisions",
  type = "number",
  initial = "0",

  summary = [["
    The number of edges in which stressed edges will be subdivided.
  "]]
}