forked from zufuliu/notepad4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GraphViz.dot
487 lines (480 loc) · 14.7 KB
/
GraphViz.dot
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
// 2.49 https://graphviz.org/
// https://graphviz.org/documentation/
//! keywords ===========================================================
// https://graphviz.org/doc/info/lang.html
strict graph digraph
graph node edge
subgraph
true false
//! attributes ===========================================================
// https://graphviz.org/doc/info/attrs.html
[
_background =
area =
// https://graphviz.org/docs/attr-types/arrowType/
arrowhead = normal, dot, odot, none, empty, diamond, ediamond, box, open, vee
arrowhead = inv, invdot, invodot, tee, invempty, odiamond, crow, obox, halfopen
arrowsize =
arrowtail = normal
bb =
bgcolor =
center = false
charset =
class =
// https://graphviz.org/docs/attr-types/clusterMode/
clusterrank = local, global, none
color = black
colorscheme =
comment =
compound = false
concentrator = false
constraint = true
Damping =
decorate = false
defaultdist =
dim =
dimen =
// https://graphviz.org/docs/attr-types/dirType/
dir = forward, back, both, none
diredgeconstraints = false
distortion =
dpi =
edgehref =
edgetarget =
edgetooltip =
edgeURL =
epsilon =
esep =
fillcolor = lightgrey, black
fixedsize = false
fontcolor = black
fontname =
fontnames =
fontpath =
fontsize =
forcelabels = true
gradientangle =
group =
head_lp =
headclip = true
headhref =
headlabel =
headport = center
headtarget =
headtooltip =
headURL =
height =
href =
id =
image =
imagepath =
imagepos =
imagescale = false
inputscale =
K =
label =
label_scheme =
labelangle =
labeldistance =
labelfloat = false
labelfontcolor = black
labelfontname =
labelfontsize =
labelhref =
labeljust =
labelloc =
labeltarget =
labeltooltip =
labelURL =
landscape = false
layer =
layerlistsep =
layers =
layerselect =
layersep =
layout =
len =
levels =
levelsgap =
lhead =
lheight =
lp =
ltail =
lwidth =
margin =
maxiter =
mclimit =
mindist =
minlen =
mode = major, KK, sgd, hier, ipsep, spring, maxent
model = shortpath, circuit, subset, mds
mosek = false
newrank = false
nodesep =
nojustify = false
normalize = false
notranslate = false
nslimit =
nslimit1 =
ordering =
orientation =
// https://graphviz.org/docs/attr-types/outputMode/
outputorder = breadthfirst, nodesfirst, edgesfirst
overlap = true
overlap_scaling =
overlap_shrink = true
pack = false
// https://graphviz.org/docs/attr-types/packMode/
packmode = none, clust, graph
pad =
page =
// https://graphviz.org/docs/attr-types/pagedir/
pagedir = BL, BR, TL, TR, RB, RT, LB, LT
pencolor = black
penwidth =
peripheries =
pin = false
pos =
// https://graphviz.org/docs/attr-types/quadType/
quadtree = true, normal, false, none, fast
quantum =
// https://graphviz.org/docs/attr-types/rankType/
rank = same, min, source, max, sink
// https://graphviz.org/docs/attr-types/rankdir/
rankdir = TB, LR, BT, RL
ranksep =
ratio =
rects =
regular = false
remincross = true
repulsiveforce =
resolution =
root = false
rotate =
rotation =
samehead =
sametail =
samplepoints =
scale =
searchsize =
sep =
shape = ellipse
shapefile =
showboxes =
sides =
size =
skew =
// https://graphviz.org/docs/attr-types/smoothType/
smoothing = none, avg_dist, graph_dist, power_dist, rng, spring, triangle
sortv =
splines = true, none, line, spline, polyline, ortho, curved, compound
// https://graphviz.org/docs/attr-types/startType/
start = regular, self, random
// https://graphviz.org/docs/attr-types/style/
style = dashed, dotted, solid, invis, bold
style = tapered
style = filled, striped, wedged, diagonals, rounded
style = filled, striped, rounded
stylesheet =
tail_lp =
tailclip = true
tailhref =
taillabel =
tailport = center
tailtarget = _graphviz
tailtooltip =
tailURL =
target =
tooltip =
truecolor =
URL =
vertices =
viewport =
voro_margin =
weight =
width =
xdotversion =
xlabel =
xlp =
//z =
]
//! Node Shapes ===========================================================
// https://graphviz.org/doc/info/shapes.html
// Polygon-based Nodes
// https://graphviz.org/doc/info/shapes.html#polygon
box polygon ellipse oval circle
point egg triangle plaintext plain
diamond trapezium parallelogram house pentagon
hexagon septagon octagon doublecircle doubleoctagon
tripleoctagon invtriangle invtrapezium invhouse Mdiamond
Msquare Mcircle rect rectangle square
star none underline cylinder note
tab folder box3d component promoter
cds terminator utr primersite restrictionsite
fivepoverhang threepoverhang noverhang assembly signature
insulator ribosite rnastab proteasesite proteinstab
rpromoter rarrow larrow lpromoter
// Arrow Shapes
// https://graphviz.org/doc/info/arrows.html
// Primitive Shapes
// https://graphviz.org/doc/info/arrows.html#primitive-shapes
box crow curve diamond dot icurve inv none normal tee vee
// Shape Modifiers
// https://graphviz.org/doc/info/arrows.html#shape-modifiers
box lbox rbox obox olbox orbox
crow lcrow rcrow
diamond ldiamond rdiamond odiamond oldiamond ordiamond
dot odot
inv linv rinv oinv olinv orinv
none
normal lnormal rnormal onormal olnormal ornormal
tee ltee rtee
vee lvee rvee
curve lcurve rcurve icurve licurve ricurve
//! Color Names ===========================================================
// https://graphviz.org/doc/info/colors.html
// The X11 color scheme
// https://graphviz.org/doc/info/colors.html#x11
aliceblue antiquewhite antiquewhite1 antiquewhite2 antiquewhite3
antiquewhite4 aqua aquamarine aquamarine1 aquamarine2
aquamarine3 aquamarine4 azure azure1 azure2
azure3 azure4 beige bisque bisque1
bisque2 bisque3 bisque4 black blanchedalmond
blue blue1 blue2 blue3 blue4
blueviolet brown brown1 brown2 brown3
brown4 burlywood burlywood1 burlywood2 burlywood3
burlywood4 cadetblue cadetblue1 cadetblue2 cadetblue3
cadetblue4 chartreuse chartreuse1 chartreuse2 chartreuse3
chartreuse4 chocolate chocolate1 chocolate2 chocolate3
chocolate4 coral coral1 coral2 coral3
coral4 cornflowerblue cornsilk cornsilk1 cornsilk2
cornsilk3 cornsilk4 crimson cyan cyan1
cyan2 cyan3 cyan4 darkblue darkcyan
darkgoldenrod darkgoldenrod1 darkgoldenrod2 darkgoldenrod3 darkgoldenrod4
darkgray darkgreen darkgrey darkkhaki darkmagenta
darkolivegreen darkolivegreen1 darkolivegreen2 darkolivegreen3 darkolivegreen4
darkorange darkorange1 darkorange2 darkorange3 darkorange4
darkorchid darkorchid1 darkorchid2 darkorchid3 darkorchid4
darkred darksalmon darkseagreen darkseagreen1 darkseagreen2
darkseagreen3 darkseagreen4 darkslateblue darkslategray darkslategray1
darkslategray2 darkslategray3 darkslategray4 darkslategrey darkturquoise
darkviolet deeppink deeppink1 deeppink2 deeppink3
deeppink4 deepskyblue deepskyblue1 deepskyblue2 deepskyblue3
deepskyblue4 dimgray dimgrey dodgerblue dodgerblue1
dodgerblue2 dodgerblue3 dodgerblue4 firebrick firebrick1
firebrick2 firebrick3 firebrick4 floralwhite forestgreen
fuchsia gainsboro ghostwhite gold gold1
gold2 gold3 gold4 goldenrod goldenrod1
goldenrod2 goldenrod3 goldenrod4 gray gray0
gray1 gray10 gray100 gray11 gray12
gray13 gray14 gray15 gray16 gray17
gray18 gray19 gray2 gray20 gray21
gray22 gray23 gray24 gray25 gray26
gray27 gray28 gray29 gray3 gray30
gray31 gray32 gray33 gray34 gray35
gray36 gray37 gray38 gray39 gray4
gray40 gray41 gray42 gray43 gray44
gray45 gray46 gray47 gray48 gray49
gray5 gray50 gray51 gray52 gray53
gray54 gray55 gray56 gray57 gray58
gray59 gray6 gray60 gray61 gray62
gray63 gray64 gray65 gray66 gray67
gray68 gray69 gray7 gray70 gray71
gray72 gray73 gray74 gray75 gray76
gray77 gray78 gray79 gray8 gray80
gray81 gray82 gray83 gray84 gray85
gray86 gray87 gray88 gray89 gray9
gray90 gray91 gray92 gray93 gray94
gray95 gray96 gray97 gray98 gray99
green green1 green2 green3 green4
greenyellow grey grey0 grey1 grey10
grey100 grey11 grey12 grey13 grey14
grey15 grey16 grey17 grey18 grey19
grey2 grey20 grey21 grey22 grey23
grey24 grey25 grey26 grey27 grey28
grey29 grey3 grey30 grey31 grey32
grey33 grey34 grey35 grey36 grey37
grey38 grey39 grey4 grey40 grey41
grey42 grey43 grey44 grey45 grey46
grey47 grey48 grey49 grey5 grey50
grey51 grey52 grey53 grey54 grey55
grey56 grey57 grey58 grey59 grey6
grey60 grey61 grey62 grey63 grey64
grey65 grey66 grey67 grey68 grey69
grey7 grey70 grey71 grey72 grey73
grey74 grey75 grey76 grey77 grey78
grey79 grey8 grey80 grey81 grey82
grey83 grey84 grey85 grey86 grey87
grey88 grey89 grey9 grey90 grey91
grey92 grey93 grey94 grey95 grey96
grey97 grey98 grey99 honeydew honeydew1
honeydew2 honeydew3 honeydew4 hotpink hotpink1
hotpink2 hotpink3 hotpink4 indianred indianred1
indianred2 indianred3 indianred4 indigo invis
ivory ivory1 ivory2 ivory3 ivory4
khaki khaki1 khaki2 khaki3 khaki4
lavender lavenderblush lavenderblush1 lavenderblush2 lavenderblush3
lavenderblush4 lawngreen lemonchiffon lemonchiffon1 lemonchiffon2
lemonchiffon3 lemonchiffon4 lightblue lightblue1 lightblue2
lightblue3 lightblue4 lightcoral lightcyan lightcyan1
lightcyan2 lightcyan3 lightcyan4 lightgoldenrod lightgoldenrod1
lightgoldenrod2 lightgoldenrod3 lightgoldenrod4 lightgoldenrodyellow lightgray
lightgreen lightgrey lightpink lightpink1 lightpink2
lightpink3 lightpink4 lightsalmon lightsalmon1 lightsalmon2
lightsalmon3 lightsalmon4 lightseagreen lightskyblue lightskyblue1
lightskyblue2 lightskyblue3 lightskyblue4 lightslateblue lightslategray
lightslategrey lightsteelblue lightsteelblue1 lightsteelblue2 lightsteelblue3
lightsteelblue4 lightyellow lightyellow1 lightyellow2 lightyellow3
lightyellow4 lime limegreen linen magenta
magenta1 magenta2 magenta3 magenta4 maroon
maroon1 maroon2 maroon3 maroon4 mediumaquamarine
mediumblue mediumorchid mediumorchid1 mediumorchid2 mediumorchid3
mediumorchid4 mediumpurple mediumpurple1 mediumpurple2 mediumpurple3
mediumpurple4 mediumseagreen mediumslateblue mediumspringgreen mediumturquoise
mediumvioletred midnightblue mintcream mistyrose mistyrose1
mistyrose2 mistyrose3 mistyrose4 moccasin navajowhite
navajowhite1 navajowhite2 navajowhite3 navajowhite4 navy
navyblue none oldlace olive olivedrab
olivedrab1 olivedrab2 olivedrab3 olivedrab4 orange
orange1 orange2 orange3 orange4 orangered
orangered1 orangered2 orangered3 orangered4 orchid
orchid1 orchid2 orchid3 orchid4 palegoldenrod
palegreen palegreen1 palegreen2 palegreen3 palegreen4
paleturquoise paleturquoise1 paleturquoise2 paleturquoise3 paleturquoise4
palevioletred palevioletred1 palevioletred2 palevioletred3 palevioletred4
papayawhip peachpuff peachpuff1 peachpuff2 peachpuff3
peachpuff4 peru pink pink1 pink2
pink3 pink4 plum plum1 plum2
plum3 plum4 powderblue purple purple1
purple2 purple3 purple4 rebeccapurple red
red1 red2 red3 red4 rosybrown
rosybrown1 rosybrown2 rosybrown3 rosybrown4 royalblue
royalblue1 royalblue2 royalblue3 royalblue4 saddlebrown
salmon salmon1 salmon2 salmon3 salmon4
sandybrown seagreen seagreen1 seagreen2 seagreen3
seagreen4 seashell seashell1 seashell2 seashell3
seashell4 sienna sienna1 sienna2 sienna3
sienna4 silver skyblue skyblue1 skyblue2
skyblue3 skyblue4 slateblue slateblue1 slateblue2
slateblue3 slateblue4 slategray slategray1 slategray2
slategray3 slategray4 slategrey snow snow1
snow2 snow3 snow4 springgreen springgreen1
springgreen2 springgreen3 springgreen4 steelblue steelblue1
steelblue2 steelblue3 steelblue4 tan tan1
tan2 tan3 tan4 teal thistle
thistle1 thistle2 thistle3 thistle4 tomato
tomato1 tomato2 tomato3 tomato4 transparent
turquoise turquoise1 turquoise2 turquoise3 turquoise4
violet violetred violetred1 violetred2 violetred3
violetred4 webgray webgreen webgrey webmaroon
webpurple wheat wheat1 wheat2 wheat3
wheat4 white whitesmoke x11gray x11green
x11grey x11maroon x11purple yellow yellow1
yellow2 yellow3 yellow4 yellowgreen
// The SVG color scheme
// https://graphviz.org/doc/info/colors.html#svg
aliceblue antiquewhite aqua aquamarine azure
beige bisque black blanchedalmond blue
blueviolet brown burlywood cadetblue chartreuse
chocolate coral cornflowerblue cornsilk crimson
cyan darkblue darkcyan darkgoldenrod darkgray
darkgreen darkgrey darkkhaki darkmagenta darkolivegreen
darkorange darkorchid darkred darksalmon darkseagreen
darkslateblue darkslategray darkslategrey darkturquoise darkviolet
deeppink deepskyblue dimgray dimgrey dodgerblue
firebrick floralwhite forestgreen fuchsia gainsboro
ghostwhite gold goldenrod gray grey
green greenyellow honeydew hotpink indianred
indigo ivory khaki lavender lavenderblush
lawngreen lemonchiffon lightblue lightcoral lightcyan
lightgoldenrodyellow lightgray lightgreen lightgrey lightpink
lightsalmon lightseagreen lightskyblue lightslategray lightslategrey
lightsteelblue lightyellow lime limegreen linen
magenta maroon mediumaquamarine mediumblue mediumorchid
mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise
mediumvioletred midnightblue mintcream mistyrose moccasin
navajowhite navy oldlace olive olivedrab
orange orangered orchid palegoldenrod palegreen
paleturquoise palevioletred papayawhip peachpuff peru
pink plum powderblue purple red
rosybrown royalblue saddlebrown salmon sandybrown
seagreen seashell sienna silver skyblue
slateblue slategray slategrey snow springgreen
steelblue tan teal thistle tomato
turquoise violet wheat white whitesmoke
yellow yellowgreen
//! Labels ===========================================================
// HTML-Like Labels
// https://graphviz.org/doc/info/shapes.html#html
label = <
<TABLE
ALIGN="CENTER|LEFT|RIGHT"
BGCOLOR="color"
BORDER="value"
CELLBORDER="value"
CELLPADDING="value"
CELLSPACING="value"
COLOR="color"
COLUMNS="value"
FIXEDSIZE="FALSE|TRUE"
GRADIENTANGLE="value"
HEIGHT="value"
HREF="value"
ID="value"
PORT="portName"
ROWS="value"
SIDES="value"
STYLE="value"
TARGET="value"
TITLE="value"
TOOLTIP="value"
VALIGN="MIDDLE|BOTTOM|TOP"
WIDTH="value"
> rows </TABLE>
<TR> cells </TR>
<TD
ALIGN="CENTER|LEFT|RIGHT|TEXT"
BALIGN="CENTER|LEFT|RIGHT"
BGCOLOR="color"
BORDER="value"
CELLPADDING="value"
CELLSPACING="value"
COLOR="color"
COLSPAN="value"
FIXEDSIZE="FALSE|TRUE"
GRADIENTANGLE="value"
HEIGHT="value"
HREF="value"
ID="value"
PORT="portName"
ROWSPAN="value"
SIDES="value"
STYLE="value"
TARGET="value"
TITLE="value"
TOOLTIP="value"
VALIGN="MIDDLE|BOTTOM|TOP"
WIDTH="value"
> label </TD>
<FONT
COLOR="color"
FACE="fontname"
POINT-SIZE="value"
> text </FONT>
<BR
ALIGN="CENTER|LEFT|RIGHT"
/>
<IMG
SCALE="FALSE|TRUE|WIDTH|HEIGHT|BOTH"
SRC="value"
/>
<I> text </I>
<B> text </B>
<U> text </U>
<O> text </O>
<SUB> text </SUB>
<SUP> text </SUP>
<S> text </S>
<HR/>
<VR/>
>