<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">from .cartan_type import CartanType


def DynkinDiagram(t):
    """Display the Dynkin diagram of a given Lie algebra

    Works by generating the CartanType for the input, t, and then returning the
    Dynkin diagram method from the individual classes.

    Examples
    ========

    &gt;&gt;&gt; from sympy.liealgebras.dynkin_diagram import DynkinDiagram
    &gt;&gt;&gt; print(DynkinDiagram("A3"))
    0---0---0
    1   2   3

    &gt;&gt;&gt; print(DynkinDiagram("B4"))
    0---0---0=&gt;=0
    1   2   3   4

    """

    return CartanType(t).dynkin_diagram()
</pre></body></html>