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