summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/dynkin-diagrams/dynkin-diagrams.tex
blob: f6566c0be0ef73244ae7851e63277e499d85ba7f (plain)
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
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
\documentclass{amsart}

\title{The Dynkin diagrams package}
\author{Ben McKay}
\date{\today}
 
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{array}
\usepackage{xstring}
\usepackage{etoolbox} 
\usepackage{longtable}
\usepackage{showexpl} 
\usepackage{booktabs}
\usepackage{dynkin-diagrams}
\usetikzlibrary{backgrounds}
\usetikzlibrary{decorations.markings}

\newcommand{\C}[1]{\mathbb{C}^{#1}}
\renewcommand*{\arraystretch}{1.5}
\renewcommand\ResultBox{\fcolorbox{gray!50}{gray!30}}


\begin{document}

\maketitle
\tableofcontents


\section{Quick introduction}
This is a test of the Dynkin diagram package.
Load the package via
\begin{verbatim}
\usepackage{dynkin-diagrams} 
\end{verbatim}
(see below for options) and invoke it directly:

\begin{LTXexample}
The flag variety of pointed lines in 
projective 3-space is associated to 
the Dynkin diagram \dynkin[parabolic=3]{A}{3}.
\end{LTXexample}

or use the long form inside a \verb!\tikz! statement:
\begin{LTXexample}
\tikz \dynkin[parabolic=3]{A}{3};
\end{LTXexample}

or a TikZ environment:
\begin{LTXexample}
\begin{tikzpicture}
\dynkin[parabolic=3,label]{A}{3}
\end{tikzpicture}
\end{LTXexample}
With labels for the roots:
\begin{LTXexample}
\dynkin[parabolic=3,label]{A}{3}
\end{LTXexample}
\newpage\noindent%
Make up your own labels for the roots:
\begin{LTXexample}
\begin{tikzpicture}
\dynkin[parabolic=3]{A}{3}
\rootlabel{2}{\alpha_2}
\end{tikzpicture}
\end{LTXexample}
Use any text scale you like:
\begin{LTXexample}
\begin{tikzpicture}
\dynkin[parabolic=3,textscale=1.2]{A}{3};
\rootlabel{2}{\alpha_2}
\end{tikzpicture}
\end{LTXexample}
and access root labels via TikZ:
\begin{LTXexample}
\begin{tikzpicture}
\dynkin[parabolic=3]{A}{3};
\node at (root label 2) {\(\alpha_2\)};
\end{tikzpicture}
\end{LTXexample}
The labels have default locations:
\begin{LTXexample}
\begin{tikzpicture}
\dynkin{E}{8};
\rootlabel{1}{\alpha_1}
\rootlabel{2}{\alpha_2}
\rootlabel{3}{\alpha_3}
\end{tikzpicture}
\end{LTXexample}
You can use a starred form to flip labels to alternate locations:
\begin{LTXexample}
\begin{tikzpicture}
\dynkin{E}{8};
\rootlabel*{1}{\alpha_1}
\rootlabel*{2}{\alpha_2}
\rootlabel*{3}{\alpha_3}
\end{tikzpicture}
\end{LTXexample}
TikZ can access the roots themselves:
\typeout{AAAAAAA}
\begin{LTXexample}
\begin{tikzpicture}
\dynkin{A}{4};
\fill[white,draw=black] (root 2) circle (.1cm);
\draw[black] (root 2) circle (.05cm);
\end{tikzpicture}
\end{LTXexample}
Some diagrams will have double edges:
\begin{LTXexample}
\dynkin{F}{4}
\end{LTXexample}
or triple edges:
\begin{LTXexample}
\dynkin{G}{2}
\end{LTXexample}
\newpage\noindent%
Draw curves between the roots:
\begin{LTXexample}
\begin{tikzpicture}
\dynkin[parabolic=429]{E}{8}
\draw[very thick, black!50,-latex]  (root 3.south) to [out=-45, in=-135] (root 6.south); 
\end{tikzpicture}
\end{LTXexample}
Draw dots on the roots:
\begin{LTXexample}
\begin{tikzpicture}
\dynkin[label]{C}{8}
\dynkinopendot{3}
\dynkinopendot{7}
\end{tikzpicture}
\end{LTXexample}
Colours:
\begin{LTXexample}
\dynkin[color=blue!50,backgroundcolor=red!20]{G}{2}
\end{LTXexample}
Edge lengths:
\begin{LTXexample}
\dynkin[edgelength=1.2,parabolic=3]{A}{3}
\end{LTXexample}
Sizes of dots and crosses:
\begin{LTXexample}
\dynkin[dotradius=.08cm,parabolic=3]{A}{3}
\end{LTXexample}
Edge styles:
\begin{LTXexample}
\dynkin[edge=very thick,parabolic=3]{A}{3}
\end{LTXexample}
Open circles instead of closed dots:
\begin{LTXexample}
\dynkin[open]{E}{8}
\end{LTXexample}
Add closed dots to the open circles, at roots in the current ordering:
\begin{LTXexample}
\begin{tikzpicture}
\dynkin[open]{E}{8};
\dynkincloseddot{5}
\dynkincloseddot{8}
\end{tikzpicture}
\end{LTXexample}
More colouring:
\begin{LTXexample}
\begin{tikzpicture}[show background rectangle, 
    background rectangle/.style={fill=red!10}]
\dynkin[parabolic=1,backgroundcolor=blue!20]{G}{2}
\end{tikzpicture}
\end{LTXexample}
Cross styles:
\begin{LTXexample}
\dynkin[parabolic=124,cross=thin]{E}{8}
\end{LTXexample}
\newpage\noindent{}
Suppress arrows:
\begin{LTXexample}
\dynkin[arrows=false]{F}{4}
\end{LTXexample}
\begin{LTXexample}
\dynkin[arrows=false]{G}{2}
\end{LTXexample}

\section{Syntax}

The syntax is \verb!\dynkin[<options>]{<letter>}{<rank>}! where \verb!<letter>! is \(A,B,C,D,E,F\) or \(G\), the family of root system for the Dynkin diagram, and \verb!<rank>! is an integer representing the rank, or is the symbol \verb!*! to represent an indefinite rank:
\begin{LTXexample}
\dynkin[edge=thick,edgelength=.5cm]{A}{*}
\end{LTXexample}
\begin{LTXexample}
\dynkin[edge=thick,edgelength=.5cm]{B}{*}
\end{LTXexample}
\begin{LTXexample}
\dynkin[edge=thick,edgelength=.5cm]{C}{*}
\end{LTXexample}
\begin{LTXexample}
\dynkin[edge=thick,edgelength=.5cm]{D}{*}
\end{LTXexample}
Outside a TikZ environment, the command builds its own TikZ environment.


\newcommand*{\typ}[1]{\(\left<\texttt{#1}\right>\)}
\newcommand*{\optionLabel}[3]{%%
\multicolumn{2}{l}{\(\texttt{#1}=\texttt{#2}, \texttt{default}=\texttt{#3}\)} \\
}%%

\section{Options}
\par\noindent{}All \verb!\dynkin! options (except \texttt{affine}, \texttt{folded}, \texttt{label} and \texttt{parabolic} ) can also be passed to the package to force a global default option: 
\par\noindent%
\begin{verbatim}
\usepackage[
     ordering=Kac,
     color=blue,
     open,
     dotradius=.06cm,
     backgroundcolor=red]
     {dynkin-diagrams}
\end{verbatim}
\par\noindent%
\begin{tabular}{p{1cm}p{10cm}}
\optionLabel{parabolic}{\typ{integer}}{0} 
& A parabolic subgroup with specified integer, where the integer
is computed as \(n=\sum 2^i a_i\), \(a_i=0\) or \(1\), to say that root \(i\) is crossed, i.e. a noncompact root. \\
\optionLabel{color}{\typ{color name}}{black} \\
\optionLabel{backgroundcolor}{\typ{color name}}{white}
& This only says what color you have already set for the background rectangle. It is needed precisely for the \(G_2\) root system, to draw the triple line correctly, and only when your background color is not white. \\
\optionLabel{dotradius}{\typ{number}cm}{.05cm}
&      size of the dots and of the crosses in the Dynkin diagram \\
\optionLabel{edgelength}{\typ{number}cm}{.35cm}
&      distance between nodes in the Dynkin diagram \\
\optionLabel{edge}{\typ{TikZ style data}}{thin}
&      style of edges in the Dynkin diagram \\
\optionLabel{open}{\typ{true or false}}{false}
&      use open circles rather than solid dots as default \\
\optionLabel{label}{true or false}{false}
& whether to label the roots by their root numbers. \\
\optionLabel{arrows}{\typ{true or false}}{true}
& whether to draw the arrows that arise along the edges. \\
\optionLabel{folded}{\typ{true or false}}{true}
& whether, when drawing \(A\), \(D\) or \(E_6\) diagrams, to draw them folded. \\
\optionLabel{foldarrowstyle}{\typ{TikZ style}}{stealth-stealth}
& when drawing folded diagrams, style for the fold arrows. \\
\optionLabel{foldarrowcolor}{\typ{colour}}{black!50}
& when drawing folded diagrams, colour for the fold arrows. \\
\optionLabel{Coxeter}{\typ{true or false}}{false}
& whether to draw a Coxeter diagram, rather than a Dynkin diagram. \\

\optionLabel{ordering}{\typ{Adams, Bourbaki, Carter, Dynkin, Kac}}{Bourbaki}
& which ordering of the roots to use in exceptional root systems as follows:
\end{tabular}

\newpage

\NewDocumentCommand\tablerow{mm}%
{%
\(#1_{#2}\)
&
\dynkin[label,ordering=Adams]{#1}{#2}
&
\dynkin[label]{#1}{#2}
&
\dynkin[label,ordering=Carter]{#1}{#2}
&
\dynkin[label,ordering=Dynkin]{#1}{#2}
&
\dynkin[label,ordering=Kac]{#1}{#2}
\\
}%

\begin{center}
\begin{longtable}{@{}llllll@{}}
\toprule
& Adams & Bourbaki & Carter & Dynkin & Kac \\ \midrule
\endfirsthead
\toprule
Adams & Bourbaki & Carter & Dynkin & Kac \\ \midrule
\endhead
\bottomrule
\endfoot
\bottomrule
\endlastfoot
\tablerow{E}{6}
\tablerow{E}{7}
\tablerow{E}{8}
\tablerow{F}{4}
\tablerow{G}{2}
\end{longtable}
\end{center}


\par\noindent{}All other options are passed to TikZ.

\section{Finding the roots}
The roots are labelled from \(1\) to \(r\), where \(r\) is the rank.
The command sets up TikZ nodes \texttt{(root 1)}, \texttt{(root 2)}, and so on. 
Affine extended Dynkin diagrams have affine root are at \texttt{(root 0)}.
Use these tikz nodes to draw on the Dynkin diagram, as above.
It also sets up TikZ nodes \texttt{(root label 0)}, \texttt{(root label 1)}, and so on for the labels, and TikZ nodes \texttt{(root label swap 0)}, \texttt{(root label swap 1)}, and so on as alternative label locations, in case you want two labels on the same root, or the default choice doesn't look the way you like.
\begin{LTXexample}
\begin{tikzpicture}
\dynkin{E}{6};
\rootlabel{2}{\alpha_2}
\rootlabel{5}{\alpha_5}
\end{tikzpicture}
\end{LTXexample}

\section{Example: some parabolic subgroups}

\newcommand{\drawparabolic}[3]{#1_{#2,#3} & \tikz \dynkin[parabolic=#3]{#1}{#2}; \\}

\begin{center}
\begin{longtable}{@{}>{$}r<{$}m{2cm}m{2cm}@{}}
\endfirsthead
\endhead
\endfoot
\endlastfoot
\drawparabolic{A}{1}{0}
\drawparabolic{A}{1}{2}
\drawparabolic{A}{2}{0}
\drawparabolic{A}{2}{2}
\drawparabolic{A}{2}{4}
\drawparabolic{A}{2}{6}
\drawparabolic{B}{2}{6}
\drawparabolic{C}{3}{10}
\drawparabolic{D}{5}{8}
\drawparabolic{E}{6}{10}
\drawparabolic{E}{7}{202}
\drawparabolic{E}{8}{246}
\drawparabolic{F}{4}{26}
\drawparabolic{G}{2}{0}
\drawparabolic{G}{2}{2}
\drawparabolic{G}{2}{4}
\drawparabolic{G}{2}{6}
\end{longtable}
\end{center}



\section{Example: the Hermitian symmetric spaces}

 \renewcommand*{\arraystretch}{1.5}
\begin{center}
\begin{longtable}{@{}>{$}r<{$}m{2.2cm}m{5cm}@{}}
\endfirsthead
\endhead
\endfoot
\endlastfoot
  A_n &
  \dynkin[parabolic=16]{A}{*} & 
  Grassmannian of $k$-planes in $\C{n+1}$ 
  \\
  B_n &
  \dynkin[parabolic=2]{B}{*} & 
  $(2n-1)$-dimensional hyperquadric, i.e. the variety of null lines in $\C{2n+1}$
  \\
  C_n &
  \dynkin[parabolic=32]{C}{*} & 
  space of Lagrangian $n$-planes in $\C{2n}$
  \\
  D_n &
  \dynkin[parabolic=2]{D}{*} & 
  $(2n-2)$-dimensional hyperquadric, i.e. the variety of null lines in $\C{2n}$
  \\
  D_n &
  \dynkin[parabolic=64]{D}{*} & 
  one component of the variety of maximal dimension null subspaces of $\C{2n}$ \\
  D_n &
  \dynkin[parabolic=32]{D}{*} & 
  the other component\\
  E_6 &
  \dynkin[parabolic=2]{E}{6} &
  complexified octave projective plane\\
  E_6 & 
  \dynkin[parabolic=64]{E}{6}&its dual plane\\ 
  E_7 &
  \dynkin[parabolic=128]{E}{7}& the space of null octave 3-planes in octave 6-space
\end{longtable}
\end{center}


\section{Affine extended Dynkin diagrams}

\begin{LTXexample}
\dynkin[affine,edge=thick]{A}{*}
\end{LTXexample}

\begin{LTXexample}
\dynkin[edgelength=1cm,edge=thick,affine]{A}{*}
\end{LTXexample}

\begin{LTXexample}
\dynkin[scale=1.5,edge=thick,affine]{A}{*}
\end{LTXexample}


\begin{LTXexample}
\begin{tikzpicture}
\dynkin[affine,label]{A}{8};
\end{tikzpicture}
\end{LTXexample}


\begin{LTXexample}
\begin{tikzpicture}
\dynkin[affine]{A}{*};
\node at (root label 0) {\(\alpha_0\)};
\end{tikzpicture}
\end{LTXexample}

\begin{LTXexample}
\begin{tikzpicture}
\dynkin[affine]{A}{9}
\node at (root label 0) {\(\alpha_0\)};
\end{tikzpicture}
\end{LTXexample}

You can use TikZ to put in labels:

\begin{LTXexample}
\begin{tikzpicture}
\dynkin[affine]{A}{9};
\node at (root label 0) {\(\alpha_0\)};
\node at (root label 1) {\(\alpha_1\)};
\node at (root label 2) {\(\alpha_2\)};
\node at (root label 3) {\(\alpha_3\)};
\end{tikzpicture}
\end{LTXexample}

\begin{LTXexample}
\dynkin[affine,label]{A}{1}
\end{LTXexample}

\begin{LTXexample}
\dynkin[affine,label]{B}{8}
\end{LTXexample}

\begin{LTXexample}
\dynkin[affine,label]{B}{*}
\end{LTXexample}

\begin{LTXexample}
\dynkin[affine,label]{C}{8}
\end{LTXexample}

\begin{LTXexample}
\dynkin[affine,label]{C}{*}
\end{LTXexample} 

\begin{LTXexample}
\dynkin[affine,label]{D}{8}
\end{LTXexample}

\begin{LTXexample}
\dynkin[affine,label]{D}{*}
\end{LTXexample}

\begin{LTXexample}
\dynkin[affine,label]{E}{6}
\end{LTXexample}

\begin{LTXexample}
\dynkin[affine,label]{E}{7}
\end{LTXexample}

\begin{LTXexample}
\dynkin[affine,label]{E}{8}
\end{LTXexample}

Open circles instead of closed dots:
\begin{LTXexample}
\dynkin[affine,open,label]{E}{8}
\end{LTXexample}

\begin{LTXexample}
\dynkin[affine,label]{F}{4}
\end{LTXexample}

\begin{LTXexample}
\dynkin[affine,label]{G}{2}
\end{LTXexample}


\section{Coxeter diagrams}

\begin{LTXexample}
\dynkin[Coxeter]{B}{7}
\end{LTXexample}

\begin{LTXexample}
\dynkin[Coxeter]{F}{4}
\end{LTXexample}

\begin{LTXexample}
\dynkin[Coxeter]{G}{2}
\end{LTXexample}

\begin{LTXexample}
\dynkin[Coxeter]{H}{7}
\end{LTXexample}

\begin{LTXexample}
\dynkin[Coxeter]{I}{7}
\end{LTXexample}


\section{Folded Dynkin diagrams}

\begin{LTXexample}
\dynkin[folded]{E}{6}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{E}{6}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded]{A}{*}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{A}{1}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{A}{2}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{A}{3}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{A}{4}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{A}{10}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{A}{11}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label,arrows=false]{A}{11}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded]{D}{*}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{D}{1}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{D}{2}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{D}{3}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{D}{4}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{D}{10}
\end{LTXexample}

\begin{LTXexample}
\dynkin[folded,label]{D}{11}
\end{LTXexample}



\section{Satake diagrams}

We have incomplete support for Satake diagrams as yet, following the conventions of \cite{Helgason:2001}.

\begin{LTXexample}
\dynkin{A}{I}
\end{LTXexample}

\begin{LTXexample}
\dynkin{A}{II}
\end{LTXexample}

\begin{LTXexample}
\dynkin{E}{I}
\end{LTXexample}

\begin{LTXexample}
\dynkin{E}{II}
\end{LTXexample}

\begin{LTXexample}
\dynkin{E}{III}
\end{LTXexample}

\begin{LTXexample}
\dynkin{E}{IV}
\end{LTXexample}

\begin{LTXexample}
\dynkin{E}{V}
\end{LTXexample}

\begin{LTXexample}
\dynkin{E}{VI}
\end{LTXexample}

\begin{LTXexample}
\dynkin{E}{VII}
\end{LTXexample}

\begin{LTXexample}
\dynkin{E}{VIII}
\end{LTXexample}

\begin{LTXexample}
\dynkin{E}{XI}
\end{LTXexample}

\begin{LTXexample}
\dynkin{F}{I}
\end{LTXexample}

\begin{LTXexample}
\dynkin{F}{II}
\end{LTXexample}

\begin{LTXexample}
\dynkin{G}{I}
\end{LTXexample}

\begin{LTXexample}
\begin{tikzpicture}
\dynkin[open]{E}{6}
\draw[\dynkinfoldarrowstyle,\dynkinfoldarrowcolor]  
	(root 1.south) to [out=-45, in=-135] (root 6.south); 
\draw[\dynkinfoldarrowstyle,\dynkinfoldarrowcolor]  
	(root 3.south) to [out=-45, in=-135] (root 5.south); 
\end{tikzpicture}
\end{LTXexample}

\begin{LTXexample}
\begin{tikzpicture}
\dynkin[open]{E}{6}
\dynkincloseddot{3}
\dynkincloseddot{4}
\dynkincloseddot{5}
\draw[\dynkinfoldarrowstyle,\dynkinfoldarrowcolor] 
	(root 1.south) to [out=-45, in=-135] (root 6.south); 
\end{tikzpicture}
\end{LTXexample}

\section{Other stuff}

Some sophisticated diagrams:
\begin{center}
\begin{tikzpicture}
\dynkin[folded]{D}{9}
\foreach \i in {2,6,8,9} {
	\dynkinopendot{\i}
}
\dynkinline[white]{4}{5}
\dynkindots{4}{5}
\dynkinopendot{4}
\dynkincloseddot{5}
\end{tikzpicture}
\end{center}
can be drawn using sending TikZ options to \verb!\dynkinline! to erase the old edge, \verb!\dynkindots! to make indefinite edges, and then redrawing the roots next to any edge we draw:
\begin{LTXexample}
\begin{tikzpicture}[show background rectangle, 
    background rectangle/.style={fill=red!10}]
\dynkin[folded]{D}{9};
\foreach \i in {2,6,8,9} {
	\dynkinopendot{\i}
}
\dynkinline[red!10]{4}{5}
\dynkindots{4}{5}
\dynkinopendot{4}
\dynkincloseddot{5}
\end{tikzpicture}
\end{LTXexample}

Always draw roots after edges.

\nocite{*}
\bibliographystyle{amsplain}
\bibliography{dynkin-diagrams}
\end{document}