s = dynkinDiagram As = dynkinDiagram Ds = dynkinDiagram "A4"s = dynkinDiagram("B", 3)s = dynkinDiagram gs = dynkinDiagram RFor matrix input, each node is represented by its $1$-based position. A CartanDatum, Realization, or RootDatum with custom labels displays both pieces of information by default, in the form position[label]. Thus the diagram remains directly usable in commands that take node numbers while also showing the chosen root names. Single bonds appear as ---. In the usual double and triple bonds, the arrow points from the long root to the short root. The symmetric pair $(-2,-2)$ has no arrow and appears as ===. For other bonds the drawing gives the two Cartan entries when the usual symbols would leave their values ambiguous. A tree with a single degree-$3$ branch node (as in types $D$ and $E$) is drawn with a one-node side branch underneath the main path when possible. The four arms of $D_4^{(1)}$ form a cross; see cartanAffineD. A component consisting only of a cycle repeats its starting node at the end, followed by (cycle), to show the closing bond. The example below shows a different case: a triangle of single bonds with a fourth node attached at one corner. Disconnected diagrams are displayed component by component. When a component has no compact drawing, its bonds are listed instead, each with its two endpoints.
The function can also be called with a type-and-rank specification: a single string like "A4" or "E6", or a String/ZZ pair such as ("D", 5). In "An" the integer $n$ is the rank (so the Lie algebra is $\mathfrak{sl}_{n+1}$). The string must be a supported type letter followed by its rank, as in the examples below.
|
|
|
|
|
The first drawing is the chain $1$--$2$--$3$ of $A_3=\mathfrak{sl}_4$. The $B_4$ drawing has a double bond pointing from long node $3$ to short node $4$, while the $G_2$ triple bond points from node $2$ to short node $1$. These are the node positions to use in Weyl and parabolic commands.
|
|
All three describe the same $B_3$ diagram. The first is KacMoody's text drawing; the other two keep their native types, so they can be used in subsequent calculations in the companion package.
|
The first diagram is $G_2$. The next two have the same nodes but different Cartan entries: the label $(-4,-1)$ between $1$ and $2$ means $A_{12}=-4$ and $A_{21}=-1$, whereas $(-5,-1)$ means $A_{12}=-5$. The distinction matters: the former matrix is affine and the latter indefinite. In general, read a pair from left to right: between nodes $i$ and $j$ it gives $(A_{ij},A_{ji})$ in that order, whether in a drawing or a list of bonds.
|
|
Nodes $1$, $2$, and $3$ form a triangle: each pair is joined by a single bond. Node $4$ is joined only to node $1$, as the last row of the matrix shows.
The NodeFormat option accepts "Positions", "Labels", or "Records" for a Cartan datum or realization. "Records" is the default when labels have been chosen by the user and displays both position and label. This is unambiguous even when an integer label is also a valid position.
|
|
|
|
|
The same diagram can be read as a list of bonds with dynkinDiagramData. This also makes it accessible to screen readers: each edge {i,j,Aij,Aji} gives its endpoints and both Cartan entries, without relying on spacing or arrows:
|
|
|
|
The node numbers specify which simple roots a command uses. For example, the diagram shows that node $2$ is central in $D_4$; passing {2} as the parabolic list removes that node and leaves the three outer nodes in the Levi:
|
|
|
For a Cartan matrix that is a direct sum of finite-type blocks, each connected component is displayed separately.
The object dynkinDiagram is a method function with options.
The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/KacMoody/Documentation.m2:5353:0.