19
votes

How do you use Graphviz/DOT's HTML features to add a subscript character to an edge label?

1

1 Answers

24
votes

Like this:

digraph g {
  1 -> 2 [label=<Regular<SUB>subscript</SUB>>];
}