Closed codeofdusk closed 2 years ago
AFAICT, this is supported (cf. manual.html#quoting-and-html-like-labels, also: upstream docs on HTML-like labels):
In [1]: import graphviz
...:
...: g = graphviz.Digraph()
...:
...: g.node('a', 'TP')
...: g.node('b', 'DP')
...: g.node('c', '<D<br/>I>')
...:
...: g.edge('a', 'b')
...: g.edge('b', 'c')
...:
...: g
Another option is using manual.html#backslash-escapes:
g.node('c', r'D\nI')
I'd like to be able to do something like:
And have a newline appear between "D" and "I" in the label of node c.