Code

I frequently write Python/SageMath code when conducting research. There’s a slight possibility that it might be useful or interesting to another couple of people in the world, so I am sharing git repositories with some of my Jupyter notebooks.

Unicyclic graphs

Here’s code that allowed me to find the first example of unicyclic bipartite graphs with the same chromatic symmetric function, written mostly while our group was in residence at the AMS MRC in June 2024. SageMath didn’t have a unicyclic graph generator, so most of the code works to build all of them of prescribed order (and cycle size).

Kronecker coefficients and column-row polytopes

Here is code that constructs the inequalities defining the “column-row” polytope described in this article by Sánchez-Vallejo, and then uses LattE in enumerate the integer points and compute Kronecker coefficients. It was useful for work on the (p,q,2)-case with Vallejo (forthcoming).

Kazhdan-Lusztig polynomials

Here is code we used for the “Kazhdan-Lusztig polynomials for \tilde{B}_2article. It was helpful for finding some of the explicit formulas for elements in the affine Weyl group.

Ternary factorization

Here is an implementation of the algorithm of Theorem 4.6 from my ternary arithmetic article. The basic idea is essentially what is sometimes called “Kraitchik’s method.”

(more coming soon — feel free to reach out with requests)