ruby-graphviz 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,7 +61,7 @@ class GraphViz
61
61
  begin
62
62
  value = GraphViz::Types.const_get(@attributes[key.to_s]).new( value )
63
63
  rescue => e
64
- raise AttributeException, "Invalide value `#{value}` for attribute `#{key}` : #{e}"
64
+ raise AttributeException, "Invalid value `#{value}` for attribute `#{key}` : #{e}"
65
65
  end
66
66
 
67
67
  if value
@@ -16,7 +16,7 @@
16
16
 
17
17
  # Constants for ruby-graphviz
18
18
  #
19
- # Constants::FORMATS: the possible output formats
19
+ # GraphViz::Constants::FORMATS: the possible output formats
20
20
  # "bmp", "canon", "dot", "xdot", "cmap", "dia", "eps",
21
21
  # "fig", "gd", "gd2", "gif", "gtk", "hpgl", "ico", "imap",
22
22
  # "cmapx", "imap_np", "cmapx_np", "ismap", "jpeg", "jpg",
@@ -25,10 +25,10 @@
25
25
  # "tiff", "tif", "vml", "vmlz", "vrml", "vtx", "wbmp",
26
26
  # "xlib", "none"
27
27
  #
28
- # Constants::PROGRAMS: The possible programs
28
+ # GraphViz::Constants::PROGRAMS: The possible programs
29
29
  # "dot", "neato", "twopi", "fdp", "circo"
30
30
  #
31
- # Constants::GRAPHTYPE The possible types of graph
31
+ # GraphViz::Constants::GRAPHTYPE The possible types of graph
32
32
  # "digraph", "graph"
33
33
  #
34
34
  #
@@ -39,249 +39,256 @@
39
39
  # S => subgraph
40
40
  # C => cluster
41
41
  #
42
- module Constants
43
- RGV_VERSION = "1.0.8"
42
+ class GraphViz
43
+ module Constants
44
+ RGV_VERSION = "1.0.9"
44
45
 
45
- ## Const: Output formats
46
- FORMATS = [
47
- "bmp",
48
- "canon",
49
- "dot",
50
- "xdot",
51
- "cmap",
52
- "dia",
53
- "eps",
54
- "fig",
55
- "gd",
56
- "gd2",
57
- "gif",
58
- "gtk",
59
- "hpgl",
60
- "ico",
61
- "imap",
62
- "cmapx",
63
- "imap_np",
64
- "cmapx_np",
65
- "ismap",
66
- "jpeg",
67
- "jpg",
68
- "jpe",
69
- "mif",
70
- "mp",
71
- "pcl",
72
- "pdf",
73
- "pic",
74
- "plain",
75
- "plain-ext",
76
- "png",
77
- "ps",
78
- "ps2",
79
- "svg",
80
- "svgz",
81
- "tga",
82
- "tiff",
83
- "tif",
84
- "vml",
85
- "vmlz",
86
- "vrml",
87
- "vtx",
88
- "wbmp",
89
- "xlib",
90
- "none"
91
- ]
46
+ ## Const: Output formats
47
+ FORMATS = [
48
+ "bmp",
49
+ "canon",
50
+ "dot",
51
+ "xdot",
52
+ "cmap",
53
+ "dia",
54
+ "eps",
55
+ "fig",
56
+ "gd",
57
+ "gd2",
58
+ "gif",
59
+ "gtk",
60
+ "hpgl",
61
+ "ico",
62
+ "imap",
63
+ "cmapx",
64
+ "imap_np",
65
+ "cmapx_np",
66
+ "ismap",
67
+ "jpeg",
68
+ "jpg",
69
+ "jpe",
70
+ "mif",
71
+ "mp",
72
+ "pcl",
73
+ "pdf",
74
+ "pic",
75
+ "plain",
76
+ "plain-ext",
77
+ "png",
78
+ "ps",
79
+ "ps2",
80
+ "svg",
81
+ "svgz",
82
+ "tga",
83
+ "tiff",
84
+ "tif",
85
+ "vml",
86
+ "vmlz",
87
+ "vrml",
88
+ "vtx",
89
+ "wbmp",
90
+ "xlib",
91
+ "none"
92
+ ]
92
93
 
93
- ## Const: programs
94
- PROGRAMS = [
95
- "dot",
96
- "neato",
97
- "twopi",
98
- "fdp",
99
- "circo",
100
- "sfdp"
101
- ]
94
+ ## Const: programs
95
+ PROGRAMS = [
96
+ "dot",
97
+ "neato",
98
+ "twopi",
99
+ "fdp",
100
+ "circo",
101
+ "sfdp"
102
+ ]
102
103
 
103
- ## Const: graphs type
104
- GRAPHTYPE = [
105
- "digraph",
106
- "graph",
107
- "strict digraph"
108
- ]
104
+ ## Const: graphs type
105
+ GRAPHTYPE = [
106
+ "digraph",
107
+ "graph",
108
+ "strict digraph"
109
+ ]
109
110
 
110
- def self.getAttrsFor( x )
111
- list = {}
112
- GENCS_ATTRS.each { |k,v|
113
- list[k] = v[:type] if x.match( v[:usedBy] ) and not list.keys.include?(k)
114
- }
115
- list
116
- end
111
+ def self.getAttrsFor( x )
112
+ list = {}
113
+ GENCS_ATTRS.each { |k,v|
114
+ list[k] = v[:type] if x.match( v[:usedBy] ) and not list.keys.include?(k)
115
+ }
116
+ list
117
+ end
117
118
 
118
- # E, N, G, S and C represent edges, nodes, the root graph, subgraphs and cluster subgraphs, respectively
119
- GENCS_ATTRS = {
120
- "Damping" => { :usedBy => "G", :type => :GvDouble },
121
- "K" => { :usedBy => "GC", :type => :GvDouble },
122
- "URL" => { :usedBy => "ENGC", :type => :EscString },
123
- "area" => { :usedBy => "NC", :type => :GvDouble },
124
- "arrowhead" => { :usedBy => "E", :type => :ArrowType }, # arrowType
125
- "arrowsize" => { :usedBy => "E", :type => :GvDouble },
126
- "arrowtail" => { :usedBy => "E", :type => :ArrowType }, # arrowType
127
- "aspect" => { :usedBy => "G", :type => :EscString }, # aspectType
128
- "bb" => { :usedBy => "G", :type => :Rect }, # rect
129
- "bgcolor" => { :usedBy => "GC", :type => :Color }, # color
130
- "center" => { :usedBy => "G", :type => :GvBool }, # bool
131
- "charset" => { :usedBy => "G", :type => :EscString }, # string
132
- "clusterrank" => { :usedBy => "G", :type => :EscString }, # clusterMode
133
- "color" => { :usedBy => "ENC", :type => :ColorList }, # color, colorList
134
- "colorscheme" => { :usedBy => "ENCG", :type => :EscString }, # string
135
- "comment" => { :usedBy => "ENG", :type => :EscString }, # string
136
- "compound" => { :usedBy => "G", :type => :GvBool }, # bool
137
- "concentrate" => { :usedBy => "G", :type => :GvBool }, # bool
138
- "constraint" => { :usedBy => "E", :type => :GvBool }, # bool
139
- "decorate" => { :usedBy => "E", :type => :GvBool }, # bool
140
- "defaultdist" => { :usedBy => "G", :type => :GvDouble },
141
- "dim" => { :usedBy => "G", :type => :EscString }, # int
142
- "dimen" => { :usedBy => "G", :type => :EscString }, # int
143
- "dir" => { :usedBy => "E", :type => :EscString }, # dirType
144
- "diredgeconstraints" => { :usedBy => "G", :type => :EscString }, # string, bool
145
- "distortion" => { :usedBy => "N", :type => :GvDouble },
146
- "dpi" => { :usedBy => "G", :type => :GvDouble },
147
- "edgeURL" => { :usedBy => "E", :type => :EscString },
148
- "edgehref" => { :usedBy => "E", :type => :EscString },
149
- "edgetarget" => { :usedBy => "E", :type => :EscString },
150
- "edgetooltip" => { :usedBy => "E", :type => :EscString },
151
- "epsilon" => { :usedBy => "G", :type => :GvDouble },
152
- "esep" => { :usedBy => "G", :type => :EscString }, # GvDouble , pointf
153
- "fillcolor" => { :usedBy => "NC", :type => :Color }, # color
154
- "fixedsize" => { :usedBy => "N", :type => :GvBool }, # bool
155
- "fontcolor" => { :usedBy => "ENGC", :type => :Color }, # color
156
- "fontname" => { :usedBy => "ENGC", :type => :EscString }, # string
157
- "fontnames" => { :usedBy => "G", :type => :EscString }, # string
158
- "fontpath" => { :usedBy => "G", :type => :EscString }, # string
159
- "fontsize" => { :usedBy => "ENGC", :type => :GvDouble },
160
- "group" => { :usedBy => "N", :type => :EscString }, # string
161
- "headURL" => { :usedBy => "E", :type => :EscString },
162
- "headclip" => { :usedBy => "E", :type => :GvBool }, # bool
163
- "headhref" => { :usedBy => "E", :type => :EscString },
164
- "headlabel" => { :usedBy => "E", :type => :EscString }, # LblString
165
- "headport" => { :usedBy => "E", :type => :EscString }, # portPos
166
- "headtarget" => { :usedBy => "E", :type => :EscString },
167
- "headtooltip" => { :usedBy => "E", :type => :EscString },
168
- "height" => { :usedBy => "N", :type => :GvDouble },
169
- "href" => { :usedBy => "NE", :type => :EscString },
170
- "id" => { :usedBy => "ENG", :type => :EscString },
171
- "image" => { :usedBy => "N", :type => :EscString }, # string
172
- "imagescale" => { :usedBy => "N", :type => :EscString }, # bool, string
173
- "label" => { :usedBy => "ENGC", :type => :LblString },
174
- "labelURL" => { :usedBy => "E", :type => :EscString },
175
- "label_scheme" => { :usedBy => "G", :type => :EscString }, # int
176
- "labelangle" => { :usedBy => "E", :type => :GvDouble },
177
- "labeldistance" => { :usedBy => "E", :type => :GvDouble },
178
- "labelfloat" => { :usedBy => "E", :type => :GvBool }, # bool
179
- "labelfontcolor" => { :usedBy => "E", :type => :Color }, # color
180
- "labelfontname" => { :usedBy => "E", :type => :EscString }, # string
181
- "labelfontsize" => { :usedBy => "E", :type => :GvDouble },
182
- "labelhref" => { :usedBy => "E", :type => :EscString },
183
- "labeljust" => { :usedBy => "GC", :type => :EscString }, # string
184
- "labelloc" => { :usedBy => "GCN", :type => :EscString }, # string
185
- "labeltarget" => { :usedBy => "E", :type => :EscString },
186
- "labeltooltip" => { :usedBy => "E", :type => :EscString },
187
- "landscape" => { :usedBy => "G", :type => :GvBool }, # bool
188
- "layer" => { :usedBy => "EN", :type => :EscString }, # layerRange
189
- "layers" => { :usedBy => "G", :type => :EscString }, # layerList
190
- "layersep" => { :usedBy => "G", :type => :EscString }, # string
191
- "layout" => { :usedBy => "G", :type => :EscString }, # string
192
- "len" => { :usedBy => "E", :type => :GvDouble },
193
- "levels" => { :usedBy => "G", :type => :EscString }, # int
194
- "levelsgap" => { :usedBy => "G", :type => :GvDouble },
195
- "lhead" => { :usedBy => "E", :type => :EscString }, # string
196
- "lheight" => { :usedBy => "GC", :type => :GvDouble },
197
- "lp" => { :usedBy => "EGC", :type => :EscString }, # point
198
- "ltail" => { :usedBy => "E", :type => :EscString }, # string
199
- "lwidth" => { :usedBy => "GC", :type => :GvDouble },
200
- "margin" => { :usedBy => "NG", :type => :EscString }, # GvDouble , pointf
201
- "maxiter" => { :usedBy => "G", :type => :EscString }, # int
202
- "mclimit" => { :usedBy => "G", :type => :GvDouble },
203
- "mindist" => { :usedBy => "G", :type => :GvDouble },
204
- "minlen" => { :usedBy => "E", :type => :EscString }, # int
205
- "mode" => { :usedBy => "G", :type => :EscString }, # string
206
- "model" => { :usedBy => "G", :type => :EscString }, # string
207
- "mosek" => { :usedBy => "G", :type => :GvBool }, # bool
208
- "nodesep" => { :usedBy => "G", :type => :GvDouble },
209
- "nojustify" => { :usedBy => "GCNE", :type => :GvBool }, # bool
210
- "normalize" => { :usedBy => "G", :type => :GvBool }, # bool
211
- "nslimit" => { :usedBy => "G", :type => :GvDouble },
212
- "nslimit1" => { :usedBy => "G", :type => :GvDouble },
213
- "ordering" => { :usedBy => "G", :type => :EscString }, # string
214
- "orientation" => { :usedBy => "NG", :type => :GvDouble }, # N: double, G: string
215
- "outputorder" => { :usedBy => "G", :type => :EscString }, # outputMode
216
- "overlap" => { :usedBy => "G", :type => :EscString }, # string, bool
217
- "overlap_scaling" => { :usedBy => "G", :type => :GvDouble },
218
- "pack" => { :usedBy => "G", :type => :EscString }, # bool, int
219
- "packmode" => { :usedBy => "G", :type => :EscString }, # packMode
220
- "pad" => { :usedBy => "G", :type => :EscString }, # GvDouble , pointf
221
- "page" => { :usedBy => "G", :type => :EscString }, # GvDouble , pointf
222
- "pagedir" => { :usedBy => "G", :type => :EscString }, # pageDir
223
- "pencolor" => { :usedBy => "C", :type => :Color }, # color
224
- "penwidth" => { :usedBy => "CNE", :type => :GvDouble },
225
- "peripheries" => { :usedBy => "NC", :type => :EscString }, # int
226
- "pin" => { :usedBy => "N", :type => :GvBool }, # bool
227
- "pos" => { :usedBy => "EN", :type => :SplineType }, # point, splineTypes
228
- "quadtree" => { :usedBy => "G", :type => :GvBool }, # bool
229
- "quantum" => { :usedBy => "G", :type => :GvDouble },
230
- "rank" => { :usedBy => "S", :type => :EscString }, # rankType
231
- "rankdir" => { :usedBy => "G", :type => :EscString }, # rankDir
232
- "ranksep" => { :usedBy => "G", :type => :EscString }, # GvDouble, doubleList
233
- "ratio" => { :usedBy => "G", :type => :EscString }, # GvDouble, String
234
- "rects" => { :usedBy => "N", :type => :Rect }, # rect
235
- "regular" => { :usedBy => "N", :type => :GvBool }, # bool
236
- "remincross" => { :usedBy => "G", :type => :GvBool }, # bool
237
- "repulsiveforce" => { :usedBy => "G", :type => :GvDouble },
238
- "resolution" => { :usedBy => "G", :type => :GvDouble },
239
- "root" => { :usedBy => "GN", :type => :EscString }, # bool, string
240
- "rotate" => { :usedBy => "G", :type => :EscString }, # int
241
- "rotation" => { :usedBy => "G", :type => :GvDouble },
242
- "samehead" => { :usedBy => "E", :type => :EscString }, # string
243
- "sametail" => { :usedBy => "E", :type => :EscString }, # string
244
- "samplepoints" => { :usedBy => "G", :type => :EscString }, # int
245
- "scale" => { :usedBy => "G", :type => :EscString }, # double, pointf
246
- "searchsize" => { :usedBy => "G", :type => :EscString }, # int
247
- "sep" => { :usedBy => "G", :type => :EscString }, # double , pointf
248
- "shape" => { :usedBy => "N", :type => :EscString }, # shape
249
- "shapefile" => { :usedBy => "N", :type => :EscString }, # string
250
- "showboxes" => { :usedBy => "ENG", :type => :EscString }, # int
251
- "sides" => { :usedBy => "N", :type => :EscString }, # int
252
- "size" => { :usedBy => "NG", :type => :EscString }, # double , pointf
253
- "skew" => { :usedBy => "N", :type => :GvDouble },
254
- "smoothing" => { :usedBy => "G", :type => :EscString }, # smoothType
255
- "sortv" => { :usedBy => "GCN", :type => :EscString }, # int
256
- "splines" => { :usedBy => "G", :type => :EscString }, # bool, string
257
- "start" => { :usedBy => "G", :type => :EscString }, # startType
258
- "style" => { :usedBy => "ENC", :type => :EscString }, # style
259
- "stylesheet" => { :usedBy => "G", :type => :EscString }, # string
260
- "tailURL" => { :usedBy => "E", :type => :EscString },
261
- "tailclip" => { :usedBy => "E", :type => :GvBool }, # bool
262
- "tailhref" => { :usedBy => "E", :type => :EscString },
263
- "taillabel" => { :usedBy => "E", :type => :EscString }, # lblString
264
- "tailport" => { :usedBy => "E", :type => :EscString }, # portPos
265
- "tailtarget" => { :usedBy => "E", :type => :EscString },
266
- "tailtooltip" => { :usedBy => "E", :type => :EscString },
267
- "target" => { :usedBy => "ENGC", :type => :EscString }, # escString, string
268
- "tooltip" => { :usedBy => "NEC", :type => :EscString },
269
- "truecolor" => { :usedBy => "G", :type => :GvBool }, # bool
270
- "vertices" => { :usedBy => "N", :type => :EscString }, # pointfList
271
- "viewport" => { :usedBy => "G", :type => :EscString }, # viewPort
272
- "voro_margin" => { :usedBy => "G", :type => :GvDouble },
273
- "weight" => { :usedBy => "E", :type => :GvDouble },
274
- "width" => { :usedBy => "N", :type => :GvDouble },
275
- "xlabel" => { :usedBy => "EN", :type => :LblString },
276
- "z" => { :usedBy => "N", :type => :GvDouble }
277
- }
119
+ # E, N, G, S and C represent edges, nodes, the root graph, subgraphs and cluster subgraphs, respectively
120
+ GENCS_ATTRS = {
121
+ "Damping" => { :usedBy => "G", :type => :GvDouble },
122
+ "K" => { :usedBy => "GC", :type => :GvDouble },
123
+ "URL" => { :usedBy => "ENGC", :type => :EscString },
124
+ "area" => { :usedBy => "NC", :type => :GvDouble },
125
+ "arrowhead" => { :usedBy => "E", :type => :ArrowType }, # arrowType
126
+ "arrowsize" => { :usedBy => "E", :type => :GvDouble },
127
+ "arrowtail" => { :usedBy => "E", :type => :ArrowType }, # arrowType
128
+ "aspect" => { :usedBy => "G", :type => :EscString }, # aspectType
129
+ "bb" => { :usedBy => "G", :type => :Rect }, # rect
130
+ "bgcolor" => { :usedBy => "GC", :type => :Color }, # color
131
+ "center" => { :usedBy => "G", :type => :GvBool }, # bool
132
+ "charset" => { :usedBy => "G", :type => :EscString }, # string
133
+ "clusterrank" => { :usedBy => "G", :type => :EscString }, # clusterMode
134
+ "color" => { :usedBy => "ENC", :type => :ColorList }, # color, colorList
135
+ "colorscheme" => { :usedBy => "ENCG", :type => :EscString }, # string
136
+ "comment" => { :usedBy => "ENG", :type => :EscString }, # string
137
+ "compound" => { :usedBy => "G", :type => :GvBool }, # bool
138
+ "concentrate" => { :usedBy => "G", :type => :GvBool }, # bool
139
+ "constraint" => { :usedBy => "E", :type => :GvBool }, # bool
140
+ "decorate" => { :usedBy => "E", :type => :GvBool }, # bool
141
+ "defaultdist" => { :usedBy => "G", :type => :GvDouble },
142
+ "dim" => { :usedBy => "G", :type => :EscString }, # int
143
+ "dimen" => { :usedBy => "G", :type => :EscString }, # int
144
+ "dir" => { :usedBy => "E", :type => :EscString }, # dirType
145
+ "diredgeconstraints" => { :usedBy => "G", :type => :EscString }, # string, bool
146
+ "distortion" => { :usedBy => "N", :type => :GvDouble },
147
+ "dpi" => { :usedBy => "G", :type => :GvDouble },
148
+ "edgeURL" => { :usedBy => "E", :type => :EscString },
149
+ "edgehref" => { :usedBy => "E", :type => :EscString },
150
+ "edgetarget" => { :usedBy => "E", :type => :EscString },
151
+ "edgetooltip" => { :usedBy => "E", :type => :EscString },
152
+ "epsilon" => { :usedBy => "G", :type => :GvDouble },
153
+ "esep" => { :usedBy => "G", :type => :EscString }, # GvDouble , pointf
154
+ "fillcolor" => { :usedBy => "NEC", :type => :Color }, # color
155
+ "fixedsize" => { :usedBy => "N", :type => :GvBool }, # bool
156
+ "fontcolor" => { :usedBy => "ENGC", :type => :Color }, # color
157
+ "fontname" => { :usedBy => "ENGC", :type => :EscString }, # string
158
+ "fontnames" => { :usedBy => "G", :type => :EscString }, # string
159
+ "fontpath" => { :usedBy => "G", :type => :EscString }, # string
160
+ "fontsize" => { :usedBy => "ENGC", :type => :GvDouble },
161
+ "forcelabels" => { :usedBy => "G", :type => :GvBool}, # bool
162
+ "gradientangle" => { :usedBy => "NCG", :type => :EscString }, # int
163
+ "group" => { :usedBy => "N", :type => :EscString }, # string
164
+ "headURL" => { :usedBy => "E", :type => :EscString },
165
+ "headclip" => { :usedBy => "E", :type => :GvBool }, # bool
166
+ "headhref" => { :usedBy => "E", :type => :EscString },
167
+ "headlabel" => { :usedBy => "E", :type => :EscString }, # LblString
168
+ "headport" => { :usedBy => "E", :type => :EscString }, # portPos
169
+ "headtarget" => { :usedBy => "E", :type => :EscString },
170
+ "headtooltip" => { :usedBy => "E", :type => :EscString },
171
+ "height" => { :usedBy => "N", :type => :GvDouble },
172
+ "href" => { :usedBy => "ENGC", :type => :EscString },
173
+ "id" => { :usedBy => "ENG", :type => :EscString },
174
+ "image" => { :usedBy => "N", :type => :EscString }, # string
175
+ "imagepath" => { :usedBy => "G", :type => :EscString }, # string
176
+ "imagescale" => { :usedBy => "N", :type => :EscString }, # bool, string
177
+ "label" => { :usedBy => "ENGC", :type => :LblString },
178
+ "labelURL" => { :usedBy => "E", :type => :EscString },
179
+ "label_scheme" => { :usedBy => "G", :type => :EscString }, # int
180
+ "labelangle" => { :usedBy => "E", :type => :GvDouble },
181
+ "labeldistance" => { :usedBy => "E", :type => :GvDouble },
182
+ "labelfloat" => { :usedBy => "E", :type => :GvBool }, # bool
183
+ "labelfontcolor" => { :usedBy => "E", :type => :Color }, # color
184
+ "labelfontname" => { :usedBy => "E", :type => :EscString }, # string
185
+ "labelfontsize" => { :usedBy => "E", :type => :GvDouble },
186
+ "labelhref" => { :usedBy => "E", :type => :EscString },
187
+ "labeljust" => { :usedBy => "GC", :type => :EscString }, # string
188
+ "labelloc" => { :usedBy => "GCN", :type => :EscString }, # string
189
+ "labeltarget" => { :usedBy => "E", :type => :EscString },
190
+ "labeltooltip" => { :usedBy => "E", :type => :EscString },
191
+ "landscape" => { :usedBy => "G", :type => :GvBool }, # bool
192
+ "layer" => { :usedBy => "ENC", :type => :EscString }, # layerRange
193
+ "layerlistsep" => { :usedBy => "G", :type => :EscString }, # string
194
+ "layers" => { :usedBy => "G", :type => :EscString }, # layerList
195
+ "layerselect" => { :usedBy => "G", :type => :EscString }, # layerRange
196
+ "layersep" => { :usedBy => "G", :type => :EscString }, # string
197
+ "layout" => { :usedBy => "G", :type => :EscString }, # string
198
+ "len" => { :usedBy => "E", :type => :GvDouble },
199
+ "levels" => { :usedBy => "G", :type => :EscString }, # int
200
+ "levelsgap" => { :usedBy => "G", :type => :GvDouble },
201
+ "lhead" => { :usedBy => "E", :type => :EscString }, # string
202
+ "lheight" => { :usedBy => "GC", :type => :GvDouble },
203
+ "lp" => { :usedBy => "EGC", :type => :EscString }, # point
204
+ "ltail" => { :usedBy => "E", :type => :EscString }, # string
205
+ "lwidth" => { :usedBy => "GC", :type => :GvDouble },
206
+ "margin" => { :usedBy => "NGC", :type => :EscString }, # GvDouble , pointf
207
+ "maxiter" => { :usedBy => "G", :type => :EscString }, # int
208
+ "mclimit" => { :usedBy => "G", :type => :GvDouble },
209
+ "mindist" => { :usedBy => "G", :type => :GvDouble },
210
+ "minlen" => { :usedBy => "E", :type => :EscString }, # int
211
+ "mode" => { :usedBy => "G", :type => :EscString }, # string
212
+ "model" => { :usedBy => "G", :type => :EscString }, # string
213
+ "mosek" => { :usedBy => "G", :type => :GvBool }, # bool
214
+ "nodesep" => { :usedBy => "G", :type => :GvDouble },
215
+ "nojustify" => { :usedBy => "GCNE", :type => :GvBool }, # bool
216
+ "normalize" => { :usedBy => "G", :type => :GvBool }, # bool
217
+ "nslimit" => { :usedBy => "G", :type => :GvDouble },
218
+ "nslimit1" => { :usedBy => "G", :type => :GvDouble },
219
+ "ordering" => { :usedBy => "GN", :type => :EscString }, # string
220
+ "orientation" => { :usedBy => "NG", :type => :GvDouble }, # N: double, G: string
221
+ "outputorder" => { :usedBy => "G", :type => :EscString }, # outputMode
222
+ "overlap" => { :usedBy => "G", :type => :EscString }, # string, bool
223
+ "overlap_scaling" => { :usedBy => "G", :type => :GvDouble },
224
+ "pack" => { :usedBy => "G", :type => :EscString }, # bool, int
225
+ "packmode" => { :usedBy => "G", :type => :EscString }, # packMode
226
+ "pad" => { :usedBy => "G", :type => :EscString }, # GvDouble , pointf
227
+ "page" => { :usedBy => "G", :type => :EscString }, # GvDouble , pointf
228
+ "pagedir" => { :usedBy => "G", :type => :EscString }, # pageDir
229
+ "pencolor" => { :usedBy => "C", :type => :Color }, # color
230
+ "penwidth" => { :usedBy => "CNE", :type => :GvDouble },
231
+ "peripheries" => { :usedBy => "NC", :type => :EscString }, # int
232
+ "pin" => { :usedBy => "N", :type => :GvBool }, # bool
233
+ "pos" => { :usedBy => "EN", :type => :SplineType }, # point, splineTypes
234
+ "quadtree" => { :usedBy => "G", :type => :GvBool }, # bool
235
+ "quantum" => { :usedBy => "G", :type => :GvDouble },
236
+ "rank" => { :usedBy => "S", :type => :EscString }, # rankType
237
+ "rankdir" => { :usedBy => "G", :type => :EscString }, # rankDir
238
+ "ranksep" => { :usedBy => "G", :type => :EscString }, # GvDouble, doubleList
239
+ "ratio" => { :usedBy => "G", :type => :EscString }, # GvDouble, String
240
+ "rects" => { :usedBy => "N", :type => :Rect }, # rect
241
+ "regular" => { :usedBy => "N", :type => :GvBool }, # bool
242
+ "remincross" => { :usedBy => "G", :type => :GvBool }, # bool
243
+ "repulsiveforce" => { :usedBy => "G", :type => :GvDouble },
244
+ "resolution" => { :usedBy => "G", :type => :GvDouble },
245
+ "root" => { :usedBy => "GN", :type => :EscString }, # bool, string
246
+ "rotate" => { :usedBy => "G", :type => :EscString }, # int
247
+ "rotation" => { :usedBy => "G", :type => :GvDouble },
248
+ "samehead" => { :usedBy => "E", :type => :EscString }, # string
249
+ "sametail" => { :usedBy => "E", :type => :EscString }, # string
250
+ "samplepoints" => { :usedBy => "G", :type => :EscString }, # int
251
+ "scale" => { :usedBy => "G", :type => :EscString }, # double, pointf
252
+ "searchsize" => { :usedBy => "G", :type => :EscString }, # int
253
+ "sep" => { :usedBy => "G", :type => :EscString }, # double , pointf
254
+ "shape" => { :usedBy => "N", :type => :EscString }, # shape
255
+ "shapefile" => { :usedBy => "N", :type => :EscString }, # string
256
+ "showboxes" => { :usedBy => "ENG", :type => :EscString }, # int
257
+ "sides" => { :usedBy => "N", :type => :EscString }, # int
258
+ "size" => { :usedBy => "NG", :type => :EscString }, # double , pointf
259
+ "skew" => { :usedBy => "N", :type => :GvDouble },
260
+ "smoothing" => { :usedBy => "G", :type => :EscString }, # smoothType
261
+ "sortv" => { :usedBy => "GCN", :type => :EscString }, # int
262
+ "splines" => { :usedBy => "G", :type => :EscString }, # bool, string
263
+ "start" => { :usedBy => "G", :type => :EscString }, # startType
264
+ "style" => { :usedBy => "ENCG", :type => :EscString }, # style
265
+ "stylesheet" => { :usedBy => "G", :type => :EscString }, # string
266
+ "tailURL" => { :usedBy => "E", :type => :EscString },
267
+ "tailclip" => { :usedBy => "E", :type => :GvBool }, # bool
268
+ "tailhref" => { :usedBy => "E", :type => :EscString },
269
+ "taillabel" => { :usedBy => "E", :type => :EscString }, # lblString
270
+ "tailport" => { :usedBy => "E", :type => :EscString }, # portPos
271
+ "tailtarget" => { :usedBy => "E", :type => :EscString },
272
+ "tailtooltip" => { :usedBy => "E", :type => :EscString },
273
+ "target" => { :usedBy => "ENGC", :type => :EscString }, # escString, string
274
+ "tooltip" => { :usedBy => "NEC", :type => :EscString },
275
+ "truecolor" => { :usedBy => "G", :type => :GvBool }, # bool
276
+ "vertices" => { :usedBy => "N", :type => :EscString }, # pointfList
277
+ "viewport" => { :usedBy => "G", :type => :EscString }, # viewPort
278
+ "voro_margin" => { :usedBy => "G", :type => :GvDouble },
279
+ "weight" => { :usedBy => "E", :type => :GvDouble },
280
+ "width" => { :usedBy => "N", :type => :GvDouble },
281
+ "xlabel" => { :usedBy => "EN", :type => :LblString },
282
+ "z" => { :usedBy => "N", :type => :GvDouble }
283
+ }
278
284
 
279
- ## Const: Graph attributes
280
- GRAPHSATTRS = Constants::getAttrsFor( /G|S|C/ )
285
+ ## Const: Graph attributes
286
+ GRAPHSATTRS = GraphViz::Constants::getAttrsFor( /G|S|C/ )
281
287
 
282
- ## Const: Node attributes
283
- NODESATTRS = Constants::getAttrsFor( /N/ )
288
+ ## Const: Node attributes
289
+ NODESATTRS = GraphViz::Constants::getAttrsFor( /N/ )
284
290
 
285
- ## Const: Edge attributes
286
- EDGESATTRS = Constants::getAttrsFor( /E/ )
291
+ ## Const: Edge attributes
292
+ EDGESATTRS = GraphViz::Constants::getAttrsFor( /E/ )
293
+ end
287
294
  end