weightDiagram(V)
This function implements Freudenthal's recursive algorithm; see Humphreys, Introduction to Lie Algebras and Representation Theory, Section 22.3. Let $V$ be the irreducible $\mathbf{g}$module with highest weight $v$. This function returns a hash table whose keys are the weights appearing in $V$ and whose values are the multiplicities of these weights. The character of $V$ can be easily computed from this information (but characters of Lie algebra modules have not been implemented in this version of LieTypes).



The object weightDiagram is a method function.