I’m a little unsure what you’re asking. Are you trying to render some mathematical formula, into the labels(?) of a graphviz diagram, using the LaTeX language for writing formulae? There are some systems that can do things like that for PDF that academics use I think. Are you trying to make, like, a PDF for an academic paper?
Are you trying to render some mathematical formula into the labels(?)
Yes, I am using this API Graphviz — graphviz 0.20.1 documentation, in which I can render graphs from python. However, in the given examples, there is no info about it.
Unfortunately, Graphviz does not directly take Latex as input nor does it produce Latex as output.
However,
You can produce a non-Latex output (SVG)
by using Latex, TikZ or similar to create the individual nodes separately
producing those individual images as SVG
and using the image attribute (image | Graphviz) in your Graphviz (see below)
You can also look into these Latex-related tools from others: External Resources | Graphviz - especially if you need Latex or TikZ as your output format
Here is a non-python Graphviz program that uses SVG icons as node contents using the image attribute:
@sebas-a, where you able to find a way to do this? I am also wanting to be able to use LaTeX interpreter as for the label of my nodes; essentially to display equations.
Can’t speak to doing this in Python, but here are some LaTex images that I picked up here & there and incorporated into nodes with the image attribute (image | Graphviz):