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