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.19.1 documentation, in which I can render graphs from python. However, in the given examples, there is no info about it.