awacke1 commited on
Commit
ea90ca7
·
1 Parent(s): 54cd120

Create new file

Browse files
Files changed (1) hide show
  1. app.py +555 -0
app.py ADDED
@@ -0,0 +1,555 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import time
2
+ import re
3
+ import pandas as pd
4
+ import numpy as np
5
+ import torch
6
+ import torch.nn.functional as F
7
+ import graphviz as graphviz
8
+ import pydeck as pdk
9
+ import streamlit as st
10
+
11
+ from transformers import AutoTokenizer, AutoModel
12
+ from tokenizers import Tokenizer, AddedToken
13
+ from st_click_detector import click_detector
14
+
15
+ st.title('Graphviz Gallery: https://graphviz.org/gallery/')
16
+
17
+ # Using code:
18
+
19
+ # Create a graphlib graph object
20
+ graph = graphviz.Digraph()
21
+ graph.edge('Grandpa', 'Ancestors')
22
+ graph.edge('Grandma', 'Ancestors')
23
+ graph.edge('Uncle', 'Grandma')
24
+ graph.edge('Aunt', 'Grandma')
25
+ graph.edge('Mom', 'Grandma')
26
+ graph.edge('Cousin Bob', 'Aunt')
27
+ graph.edge('Cousin Sue', 'Aunt')
28
+ graph.edge('Brother', 'Mom')
29
+ graph.edge('Sister', 'Mom')
30
+ st.graphviz_chart(graph)
31
+
32
+
33
+ st.graphviz_chart('''
34
+ digraph G2 {
35
+ node [shape=plaintext];
36
+ struct1 [label=<<TABLE>
37
+ <TR><TD><IMG SRC="1.png"></IMG></TD></TR>
38
+ <TR><TD>caption</TD></TR>
39
+ </TABLE>>];
40
+ }
41
+ ''')
42
+
43
+
44
+
45
+ st.title('Graphviz Dot Language: https://graphviz.org/doc/info/lang.html')
46
+
47
+ # Using graph language:
48
+ st.graphviz_chart('''
49
+ digraph G {
50
+ rankdir=LR
51
+ node [shape=plaintext]
52
+ a [
53
+ label=<
54
+ <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
55
+ <TR><TD ROWSPAN="3" BGCOLOR="yellow">class</TD></TR>
56
+ <TR><TD PORT="here" BGCOLOR="lightblue">qualifier</TD></TR>
57
+ </TABLE>>
58
+ ]
59
+ b [shape=ellipse style=filled
60
+ label=<
61
+ <TABLE BGCOLOR="bisque">
62
+ <TR>
63
+ <TD COLSPAN="3">elephant</TD>
64
+ <TD ROWSPAN="2" BGCOLOR="chartreuse"
65
+ VALIGN="bottom" ALIGN="right">two</TD>
66
+ </TR>
67
+ <TR>
68
+ <TD COLSPAN="2" ROWSPAN="2">
69
+ <TABLE BGCOLOR="grey">
70
+ <TR><TD>corn</TD></TR>
71
+ <TR><TD BGCOLOR="yellow">c</TD></TR>
72
+ <TR><TD>f</TD></TR>
73
+ </TABLE>
74
+ </TD>
75
+ <TD BGCOLOR="white">penguin</TD>
76
+ </TR>
77
+ <TR>
78
+ <TD COLSPAN="2" BORDER="4" ALIGN="right" PORT="there">4</TD>
79
+ </TR>
80
+ </TABLE>>
81
+ ]
82
+ c [
83
+ label=<long line 1<BR/>line 2<BR ALIGN="LEFT"/>line 3<BR ALIGN="RIGHT"/>>
84
+ ]
85
+ subgraph { rank=same b c }
86
+ a:here -> b:there [dir=both arrowtail=diamond]
87
+ c -> b
88
+ d [shape=triangle]
89
+ d -> c [label=<
90
+ <TABLE>
91
+ <TR>
92
+ <TD BGCOLOR="red" WIDTH="10"> </TD>
93
+ <TD>Edge labels<BR/>also</TD>
94
+ <TD BGCOLOR="blue" WIDTH="10"> </TD>
95
+ </TR>
96
+ </TABLE>>
97
+ ]
98
+ }
99
+ ''')
100
+
101
+ st.graphviz_chart('''
102
+ digraph R {
103
+ rankdir=LR
104
+ node [style=rounded]
105
+ node1 [shape=box]
106
+ node2 [fillcolor=yellow, style="rounded,filled", shape=diamond]
107
+ node3 [shape=record, label="{ a | b | c }"]
108
+ node1 -> node2 -> node3
109
+ }
110
+ ''')
111
+
112
+
113
+ # pydeck example
114
+ st.title('Pydeck Example: https://docs.streamlit.io/library/api-reference/charts/st.pydeck_chart')
115
+ df = pd.DataFrame(
116
+ np.random.randn(1000, 2) / [50, 50] + [44.9366, -93.6661],
117
+ columns=['lat', 'lon'])
118
+
119
+ # 44.9366° N, -93.6661° W : Mound MN
120
+ st.pydeck_chart(pdk.Deck(
121
+ map_style=None,
122
+ initial_view_state=pdk.ViewState(
123
+ latitude=44.9366,
124
+ longitude=-93.6661,
125
+ zoom=11,
126
+ pitch=50,
127
+ ),
128
+ layers=[
129
+ pdk.Layer(
130
+ 'HexagonLayer',
131
+ data=df,
132
+ get_position='[lon, lat]',
133
+ radius=200,
134
+ elevation_scale=4,
135
+ elevation_range=[0, 1000],
136
+ pickable=True,
137
+ extruded=True,
138
+ ),
139
+ pdk.Layer(
140
+ 'ScatterplotLayer',
141
+ data=df,
142
+ get_position='[lon, lat]',
143
+ get_color='[200, 30, 0, 160]',
144
+ get_radius=200,
145
+ ),
146
+ ],
147
+ ))
148
+
149
+ st.title('Vega Lite Example: https://docs.streamlit.io/library/api-reference/charts/st.vega_lite_chart ')
150
+ df = pd.DataFrame(
151
+ np.random.randn(200, 3),
152
+ columns=['a', 'b', 'c'])
153
+
154
+ st.vega_lite_chart(df, {
155
+ 'mark': {'type': 'circle', 'tooltip': True},
156
+ 'encoding': {
157
+ 'x': {'field': 'a', 'type': 'quantitative'},
158
+ 'y': {'field': 'b', 'type': 'quantitative'},
159
+ 'size': {'field': 'c', 'type': 'quantitative'},
160
+ 'color': {'field': 'c', 'type': 'quantitative'},
161
+ },
162
+ })
163
+
164
+ # More graph examples
165
+
166
+ st.graphviz_chart('''
167
+ digraph structs {
168
+ node [shape=record];
169
+ struct1 [label="<f0> left|<f1> mid&#92; dle|<f2> right"];
170
+ struct2 [label="<f0> one|<f1> two"];
171
+ struct3 [label="hello&#92;nworld |{ b |{c|<here> d|e}| f}| g | h"];
172
+ struct1:f1 -> struct2:f0;
173
+ struct1:f2 -> struct3:here;
174
+ }
175
+ ''')
176
+
177
+ st.graphviz_chart('''
178
+ graph G {
179
+ fontname="Helvetica,Arial,sans-serif"
180
+ node [fontname="Helvetica,Arial,sans-serif"]
181
+ edge [fontname="Helvetica,Arial,sans-serif"]
182
+ layout=fdp
183
+ e
184
+ subgraph clusterA {
185
+ a -- b;
186
+ subgraph clusterC {
187
+ C -- D;
188
+ }
189
+ }
190
+ subgraph clusterB {
191
+ d -- f
192
+ }
193
+ d -- D
194
+ e -- clusterB
195
+ clusterC -- clusterB
196
+ }
197
+ ''')
198
+
199
+ st.graphviz_chart('''
200
+ graph Transparency {
201
+ layout=neato
202
+ start=11 // empiric value to set orientation
203
+ bgcolor="#0000ff11"
204
+ node [shape=circle width=2.22 label="" style=filled]
205
+ 5 [color="#0000ff80"]
206
+ 6 [color="#ee00ee80"]
207
+ 1 [color="#ff000080"]
208
+ 2 [color="#eeee0080"]
209
+ 3 [color="#00ff0080"]
210
+ 4 [color="#00eeee80"]
211
+ 1 -- 2 -- 3 -- 4 -- 5 -- 6 -- 1
212
+ }
213
+ ''')
214
+
215
+ st.graphviz_chart('''
216
+ digraph UML_Class_diagram {
217
+ fontname="Helvetica,Arial,sans-serif"
218
+ node [fontname="Helvetica,Arial,sans-serif"]
219
+ edge [fontname="Helvetica,Arial,sans-serif"]
220
+ labelloc="t"
221
+ label="UML Class diagram demo"
222
+ graph [splines=false]
223
+ node [shape=record style=filled fillcolor=gray95]
224
+ edge [arrowhead=vee style=dashed]
225
+ Client -> Interface1 [xlabel=dependency]
226
+ Client -> Interface2
227
+ edge [dir=back arrowtail=empty style=""]
228
+ Interface1 -> Class1 [xlabel=inheritance]
229
+ Interface2 -> Class1 [dir=none]
230
+ Interface2 [label="" xlabel="Simple\ninterface" shape=circle]
231
+ Interface1[label = <{<b>«interface» I/O</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
232
+ Class1[label = <{<b>I/O class</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
233
+ edge [dir=back arrowtail=empty style=dashed]
234
+ Class1 -> System_1 [xlabel=implementation]
235
+ System_1 [label = <{<b>System</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
236
+ "Shared resource" [label = <{<b>Shared resource</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
237
+ edge [dir=back arrowtail=diamond]
238
+ "System_1" -> Subsystem_1 [xlabel="composition"]
239
+ Subsystem_1[label = <{<b>Subsystem 1</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
240
+ Subsystem_2[label = <{<b>Subsystem 2</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
241
+ Subsystem_3[label = <{<b>Subsystem 3</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
242
+ "System_1" -> Subsystem_2
243
+ "System_1" -> Subsystem_3
244
+ edge [xdir=back arrowtail=odiamond]
245
+ Subsystem_1 -> "Shared resource" [xlabel=aggregation]
246
+ {Subsystem_2 Subsystem_3 } -> "Shared resource"
247
+ }
248
+ ''')
249
+
250
+
251
+
252
+ st.graphviz_chart('''
253
+ digraph G {
254
+ fontname="Helvetica,Arial,sans-serif"
255
+ node [fontname="Helvetica,Arial,sans-serif"]
256
+ edge [fontname="Helvetica,Arial,sans-serif"]
257
+ subgraph cluster_1 {
258
+ node [ style=filled,shape="box",fillcolor="antiquewhite:aquamarine" ]n5;
259
+ node [ shape="ellipse",fillcolor="bisque4:blue2" ]n4;
260
+ node [ shape="circle",fillcolor="cadetblue1:chocolate1" ]n3;
261
+ node [ shape="diamond",fillcolor="crimson:cyan4" ]n2;
262
+ node [ shape="triangle",fillcolor="deepskyblue2:firebrick" ]n1;
263
+ node [ shape="pentagon",fillcolor="gray24:gray88" ]n0;
264
+ label = "X11 Colors";
265
+ }
266
+ subgraph cluster_2 {
267
+ node [ style=filled,shape="box",fillcolor="bisque:brown" ]n11;
268
+ node [ shape="ellipse",fillcolor="green:darkorchid" ]n10;
269
+ node [ shape="circle",fillcolor="deepskyblue:gold" ]n9;
270
+ node [ shape="diamond",fillcolor="lightseagreen:orangered" ]n8;
271
+ node [ shape="triangle",fillcolor="turquoise:salmon" ]n7;
272
+ node [ shape="pentagon",fillcolor="snow:black" ]n6;
273
+ label = "SVG Colors";
274
+ }
275
+ subgraph cluster_3 {
276
+ node [ style=filled,shape="box",fillcolor="/accent3/1:/accent3/3" ]n17;
277
+ node [ shape="ellipse",fillcolor="/accent4/1:/accent4/4" ]n16;
278
+ node [ shape="circle",fillcolor="/accent5/1:/accent5/5" ]n15;
279
+ node [ shape="diamond",fillcolor="/accent6/1:/accent6/6" ]n14;
280
+ node [ shape="triangle",fillcolor="/accent7/1:/accent7/7" ]n13;
281
+ node [ shape="pentagon",fillcolor="/accent8/1:/accent8/8" ]n12;
282
+ label = "Brewer - accent";
283
+ }
284
+ subgraph cluster_4 {
285
+ node [ style=filled,shape="box",fillcolor="/blues3/1:/blues3/2" ]n23;
286
+ node [ shape="ellipse",fillcolor="/blues4/1:/blues4/3" ]n22;
287
+ node [ shape="circle",fillcolor="/blues5/1:/blues5/4" ]n21;
288
+ node [ shape="diamond",fillcolor="/blues6/1:/blues6/5" ]n20;
289
+ node [ shape="triangle",fillcolor="/blues7/1:/blues7/6" ]n19;
290
+ node [ shape="pentagon",fillcolor="/blues8/1:/blues8/7" ]n18;
291
+ label = "Brewer - blues";
292
+ }
293
+ n3 -> n9 -> n15 -> n21;
294
+ }
295
+ ''')
296
+
297
+ st.graphviz_chart('''
298
+ digraph G {bgcolor="#0000FF44:#FF000044" gradientangle=90
299
+ fontname="Helvetica,Arial,sans-serif"
300
+ node [fontname="Helvetica,Arial,sans-serif"]
301
+ edge [fontname="Helvetica,Arial,sans-serif"]
302
+ subgraph cluster_0 {
303
+ style=filled;
304
+ color=lightgrey;
305
+ fillcolor="darkgray:gold";
306
+ gradientangle=0
307
+ node [fillcolor="yellow:green" style=filled gradientangle=270] a0;
308
+ node [fillcolor="lightgreen:red"] a1;
309
+ node [fillcolor="lightskyblue:darkcyan"] a2;
310
+ node [fillcolor="cyan:lightslateblue"] a3;
311
+ a0 -> a1 -> a2 -> a3;
312
+ label = "process #1";
313
+ }
314
+ subgraph cluster_1 {
315
+ node [fillcolor="yellow:magenta"
316
+ style=filled gradientangle=270] b0;
317
+ node [fillcolor="violet:darkcyan"] b1;
318
+ node [fillcolor="peachpuff:red"] b2;
319
+ node [fillcolor="mediumpurple:purple"] b3;
320
+ b0 -> b1 -> b2 -> b3;
321
+ label = "process #2";
322
+ color=blue
323
+ fillcolor="darkgray:gold";
324
+ gradientangle=0
325
+ style=filled;
326
+ }
327
+ start -> a0;
328
+ start -> b0;
329
+ a1 -> b3;
330
+ b2 -> a3;
331
+ a3 -> a0;
332
+ a3 -> end;
333
+ b3 -> end;
334
+ start [shape=Mdiamond ,
335
+ fillcolor="pink:red",
336
+ gradientangle=90,
337
+ style=radial];
338
+ end [shape=Msquare,
339
+ fillcolor="lightyellow:orange",
340
+ style=radial,
341
+ gradientangle=90];
342
+ }
343
+ ''')
344
+
345
+ st.graphviz_chart('''
346
+ graph Color_wheel {
347
+ graph [
348
+ layout = neato
349
+ label = "Color wheel, 33 colors.\nNeato layout"
350
+ labelloc = b
351
+ fontname = "Helvetica,Arial,sans-serif"
352
+ start = regular
353
+ normalize = 0
354
+ ]
355
+ node [
356
+ shape = circle
357
+ style = filled
358
+ color = "#00000088"
359
+ fontname = "Helvetica,Arial,sans-serif"
360
+ ]
361
+ edge [
362
+ len = 2.7
363
+ color = "#00000088"
364
+ fontname = "Helvetica,Arial,sans-serif"
365
+ ]
366
+ subgraph Dark {
367
+ node [fontcolor = white width = 1.4]
368
+ center [width = 1 style = invis shape = point]
369
+ center -- darkred [label = "0°/360°"]
370
+ darkred [fillcolor = darkred]
371
+ brown [fillcolor = brown]
372
+ brown -- center [label = "30°"]
373
+ olive [fillcolor = olive]
374
+ olive -- center [label = "60°"]
375
+ darkolivegreen [fillcolor = darkolivegreen fontsize = 10]
376
+ darkolivegreen -- center [label = "90°"]
377
+ darkgreen [fillcolor = darkgreen]
378
+ darkgreen -- center [label = "120°"]
379
+ "dark hue 0.416" [color = ".416 1 .6" fontcolor = white]
380
+ "dark hue 0.416" -- center [label = "150°"]
381
+ darkcyan [fillcolor = darkcyan]
382
+ darkcyan -- center [label = "180°"]
383
+ "dark hue 0.583" [color = ".583 1 .6" fontcolor = white]
384
+ "dark hue 0.583" -- center [label = "210°"]
385
+ darkblue [fillcolor = darkblue]
386
+ darkblue -- center [label = "240°"]
387
+ "dark hue 0.750" [color = ".750 1 .6"]
388
+ "dark hue 0.750" -- center [label = "270°"]
389
+ darkmagenta [fillcolor = darkmagenta]
390
+ darkmagenta -- center [label = "300°"]
391
+ "dark hue 0.916" [color = ".916 1 .6"]
392
+ "dark hue 0.916" -- center [label = "330°"]
393
+ }
394
+ subgraph Tue {
395
+ node [width = 1.3]
396
+ "hue 0.083" -- brown
397
+ "hue 0.083" [color = ".083 1 1"]
398
+ "hue 0.125" [color = ".125 1 1"]
399
+ "hue 0.166" -- olive
400
+ "hue 0.166" [color = ".166 1 1"]
401
+ "hue 0.208" [color = ".208 1 1"]
402
+ "hue 0.250" -- darkolivegreen
403
+ "hue 0.250" [color = ".250 1 1"]
404
+ "hue 0.291" [color = ".291 1 1"]
405
+ "hue 0.333" -- darkgreen
406
+ "hue 0.333" [color = ".333 1 1"]
407
+ "hue 0.375" [color = ".375 1 1"]
408
+ "hue 0.416" -- "dark hue 0.416"
409
+ "hue 0.416" [color = ".416 1 1"]
410
+ "hue 0.458" [color = ".458 1 1"]
411
+ "hue 0.500" -- darkcyan
412
+ "hue 0.500" [color = ".500 1 1"]
413
+ "hue 0.541" [color = ".541 1 1"]
414
+ node [fontcolor = white]
415
+ "hue 0.000" [color = ".000 1 1"]
416
+ "hue 0.000" -- darkred
417
+ "hue 0.041" [color = ".041 1 1"]
418
+ "hue 0.583" -- "dark hue 0.583"
419
+ "hue 0.583" [color = ".583 1 1"]
420
+ "hue 0.625" [color = ".625 1 1"]
421
+ "hue 0.666" -- darkblue
422
+ "hue 0.666" [color = ".666 1 1"]
423
+ "hue 0.708" [color = ".708 1 1"]
424
+ "hue 0.750" -- "dark hue 0.750"
425
+ "hue 0.750" [color = ".750 1 1"]
426
+ "hue 0.791" [color = ".791 1 1"]
427
+ "hue 0.833" -- darkmagenta
428
+ "hue 0.833" [color = ".833 1 1"]
429
+ "hue 0.875" [color = ".875 1 1"]
430
+ "hue 0.916" -- "dark hue 0.916"
431
+ "hue 0.916" [color = ".916 1 1"]
432
+ "hue 0.958" [color = ".958 1 1"]
433
+ edge [len = 1]
434
+ "hue 0.000" -- "hue 0.041" -- "hue 0.083" -- "hue 0.125" -- "hue 0.166" -- "hue 0.208"
435
+ "hue 0.208" -- "hue 0.250" -- "hue 0.291" -- "hue 0.333" -- "hue 0.375" -- "hue 0.416"
436
+ "hue 0.416" -- "hue 0.458" -- "hue 0.500" --"hue 0.541" -- "hue 0.583" -- "hue 0.625"
437
+ "hue 0.625" -- "hue 0.666" -- "hue 0.708" -- "hue 0.750" -- "hue 0.791" -- "hue 0.833"
438
+ "hue 0.833" -- "hue 0.875" -- "hue 0.916" -- "hue 0.958" -- "hue 0.000"
439
+ }
440
+ subgraph Main_colors {
441
+ node [width = 2 fontsize = 20]
442
+ red [fillcolor = red fontcolor = white]
443
+ orangered [fillcolor = orangered]
444
+ orange [fillcolor = orange]
445
+ gold [fillcolor = gold]
446
+ yellow [fillcolor = yellow]
447
+ yellowgreen [fillcolor = yellowgreen]
448
+ deeppink [fillcolor = deeppink fontcolor = white]
449
+ fuchsia [label = "fuchsia\nmagenta" fillcolor = fuchsia fontcolor = white]
450
+ purple [fillcolor = purple fontcolor = white]
451
+ blue [fillcolor = blue fontcolor = white]
452
+ cornflowerblue [fillcolor = cornflowerblue]
453
+ deepskyblue [fillcolor = deepskyblue]
454
+ aqua [fillcolor = aqua label = "aqua\ncyan"]
455
+ springgreen [fillcolor = springgreen]
456
+ green [fillcolor = green]
457
+ purple -- fuchsia -- deeppink -- red
458
+ cornflowerblue -- blue -- purple
459
+ cornflowerblue -- deepskyblue -- aqua [len = 1.7]
460
+ aqua -- springgreen -- green -- yellowgreen -- yellow
461
+ yellow -- gold -- orange -- orangered -- red [len = 1.6]
462
+ orange -- "hue 0.083"
463
+ deeppink -- "hue 0.916"
464
+ deeppink -- "hue 0.875"
465
+ red -- "hue 0.000"
466
+ yellowgreen -- "hue 0.250"
467
+ blue -- "hue 0.666"
468
+ yellow -- "hue 0.166"
469
+ gold -- "hue 0.125"
470
+ green -- "hue 0.333"
471
+ springgreen -- "hue 0.416"
472
+ aqua -- "hue 0.500"
473
+ cornflowerblue -- "hue 0.583"
474
+ deepskyblue -- "hue 0.541"
475
+ purple -- "hue 0.791"
476
+ purple -- "hue 0.750"
477
+ fuchsia -- "hue 0.833"
478
+ }
479
+ subgraph Light_colors {
480
+ node [width = 2 fontsize = 20]
481
+ node [shape = circle width = 1.8]
482
+ edge [len = 2.1]
483
+ pink [fillcolor = pink]
484
+ pink -- red
485
+ lightyellow [fillcolor = lightyellow]
486
+ lightyellow -- yellow
487
+ mediumpurple [fillcolor = mediumpurple]
488
+ mediumpurple -- purple
489
+ violet [fillcolor = violet]
490
+ violet -- fuchsia
491
+ hotpink [fillcolor = hotpink]
492
+ hotpink -- deeppink
493
+ "light hue 0.250" [color = ".250 .2 1"]
494
+ "light hue 0.250" -- yellowgreen
495
+ lightcyan [fillcolor = lightcyan]
496
+ lightcyan -- aqua
497
+ lightslateblue [fillcolor = lightslateblue]
498
+ lightslateblue -- blue
499
+ lightgreen [fillcolor = lightgreen]
500
+ lightgreen -- green
501
+ lightskyblue [fillcolor = lightskyblue]
502
+ lightskyblue -- deepskyblue
503
+ peachpuff [fillcolor = peachpuff]
504
+ peachpuff -- orange
505
+ "light hue 0.416" [color = ".416 .2 1"]
506
+ "light hue 0.416" -- springgreen
507
+ }
508
+ subgraph Tints {
509
+ node [width = 1]
510
+ edge [len = 2.4]
511
+ "hue 0 tint" -- pink
512
+ "hue 0 tint" [color = "0 .1 1"]
513
+ "hue 0.041 tint" [color = ".041 .1 1"]
514
+ "hue 0.083 tint" -- peachpuff
515
+ "hue 0.083 tint" [color = ".083 .1 1"]
516
+ "hue 0.125 tint" [color = ".125 .1 1"]
517
+ "hue 0.166 tint" -- lightyellow
518
+ "hue 0.166 tint" [color = ".166 .1 1"]
519
+ "hue 0.208 tint" [color = ".208 .1 1"]
520
+ "hue 0.250 tint" -- "light hue 0.250"
521
+ "hue 0.250 tint" [color = ".250 .1 1"]
522
+ "hue 0.291 tint" [color = ".291 .1 1"]
523
+ "hue 0.333 tint" -- lightgreen
524
+ "hue 0.333 tint" [color = ".333 .1 1"]
525
+ "hue 0.375 tint" [color = ".375 .1 1"]
526
+ "hue 0.416 tint" -- "light hue 0.416"
527
+ "hue 0.416 tint" [color = ".416 .1 1"]
528
+ "hue 0.458 tint" [color = ".458 .1 1"]
529
+ "hue 0.5 tint" -- lightcyan
530
+ "hue 0.5 tint" [color = ".5 .1 1"]
531
+ "hue 0.541 tint" -- lightskyblue
532
+ "hue 0.541 tint" [color = ".541 .1 1"]
533
+ "hue 0.583 tint" [color = ".583 .1 1"]
534
+ "hue 0.625 tint" [color = ".625 .1 1"]
535
+ "hue 0.666 tint" -- lightslateblue
536
+ "hue 0.666 tint" [color = ".666 .1 1"]
537
+ "hue 0.708 tint" [color = ".708 .1 1"]
538
+ "hue 0.750 tint" -- mediumpurple
539
+ "hue 0.750 tint" [color = ".750 .1 1"]
540
+ "hue 0.791 tint" [color = ".791 .1 1"]
541
+ "hue 0.833 tint" -- violet
542
+ "hue 0.833 tint" [color = ".833 .1 1"]
543
+ "hue 0.875 tint" [color = ".875 .1 1"]
544
+ "hue 0.916 tint" -- hotpink
545
+ "hue 0.916 tint" [color = ".916 .1 1"]
546
+ "hue 0.958 tint" [color = ".958 .1 1"]
547
+ edge [len = 2]
548
+ "hue 0 tint" -- "hue 0.041 tint" -- "hue 0.083 tint" -- "hue 0.125 tint" -- "hue 0.166 tint" -- "hue 0.208 tint"
549
+ "hue 0.208 tint" -- "hue 0.250 tint" -- "hue 0.291 tint" -- "hue 0.333 tint" -- "hue 0.375 tint" -- "hue 0.416 tint"
550
+ "hue 0.416 tint" -- "hue 0.458 tint" -- "hue 0.5 tint" --"hue 0.541 tint" -- "hue 0.583 tint" -- "hue 0.625 tint"
551
+ "hue 0.625 tint" -- "hue 0.666 tint" -- "hue 0.708 tint" -- "hue 0.750 tint" -- "hue 0.791 tint" -- "hue 0.833 tint"
552
+ "hue 0.833 tint" -- "hue 0.875 tint" -- "hue 0.916 tint" -- "hue 0.958 tint" -- "hue 0 tint"
553
+ }
554
+ }
555
+ ''')