- Given a string like MMMM, what is the easiest way to draw all Wicks contractions similar to the diagram below (from Ch. 2 of Eynard paper)? Example below is for (MMMM), but I need it to work for other cases like (MMMMMM), where the sum is over all the pairings of $\{1,\ldots,n\}$, i.e. all distinct ways of partitioning $\{1,\ldots,n\}$ into pairs $\{i,j\}$ (source)
- What is the easiest way to make this into deployable web app (ie, textfield where I can enter "MMMM" and get a diagram like below?). Link to tutorial is fine. I ran into WRI employee at JMM 2024 and was surprised that he had some Mathematica web apps accessible through his phone.