The functionality outlined below, and much more, is implemented in Hodge diamond cutter, which can be used in Sage. If you use it for your research, please cite it using .

Another family of varieties has been added to the Hodge diamond cutter: moduli of quiver representations. For every acyclic quiver and dimension vector, and suitable choice of stability condition, this produces a smooth projective variety, whose Hodge numbers are concentrated on the diagonal. The method to determine them is given by Corollary 6.9 in Markus Reineke's Inventiones paper.

Let's do two examples, based on Franzen, Reineke, Sabatini: Fano quiver moduli. They are interested in the question when a quiver moduli space is Fano, and I like Fano varieties, so that is a good choice.

Example (Subspace quivers) Consider the $m$-subspace quiver from Section 5.1. Let's also fix $d=2$, so then we are in the very classical setting of the invariant theory of $(\mathbb{P}^1)^m//\mathrm{PGL}_2$. If $m$ is even then the moduli space is singular for the canonical stability condition is singular, so we need to do a small perturbation. The following code constructs all the necessary data, and computes some examples.

which gives as output

There are other, more efficient ways, of computing these Betti numbers in the case of subspace quivers, but this method is completely generic and works for any quiver you might be interested in! The implementation already has some optimisations, but in case you need to compute some examples with large quivers and large dimension vectors and are stuck because of efficiency reasons, please get in touch and I'll see what I can do.