1

The following example does not work. The edge label doesn't show up properly.

DiGraph {
X [texlbl="$X$"]
Y [texlbl="$Y_s$"]
X -> YY [texlbl="$\int f(x) dx$"]
}

Looking for a way to get edge labels to work.

mathtick
  • 6,487
  • 13
  • 56
  • 101

1 Answers1

2

Ugh just saw this deep in the pdf after I posted:

If you use texlbl for edges, you have to provide a dummy label attribute. Otherwise Graphviz will not generate the necessary code for placing edge labels

So do this:

X -> YY [label="      ", texlbl="$asdf$"]
mathtick
  • 6,487
  • 13
  • 56
  • 101