How to get HTML labels ?

Is there some trick needed to get graphviz's HTML labels working from
graph-tool ?

I've been making some nice svg plots from graph-tool setting the
label/shape/URL/tooltip vertex properties, but now I want to be able to
have multiple URL links from each node and HTML labels seem the obvious
way to do this.

I have an idea it ought to be as simple as setting the label strings to
something like (simple test case)
  <<TABLE><TR><TD>left</TD><TD>right</TD></TR></TABLE>>
(and this seems to work as expected used in a .dot file) but setting the
same thing from graph-tool just gets me the the formatting reproduced
verbatim (extra '<' '>'s included) in the graph labels. Is some sort of
escaping needed (or do I need to bypass some escaping graph-tool is
doing) ?

Thanks for any help
Tim

Using graph-tool 2.2.15-1 & graphviz 2.26.3-5 on Debian squeeze.

Hi Tim,

Is there some trick needed to get graphviz's HTML labels working from
graph-tool ?

I haven't used HTML labels before, so I had not noticed this
problem. Unfortunately, the graphviz library API is not clear at all on
how to specify that a string is HTML or plain...

I'll take a closer look to see if I figure it out. In the mean time, you
could also post a message in the graphviz mailing list, asking them how
to do this from the library API, instead of .dot files.

Cheers,
Tiago

Nevermind, it seems I just figured it out... HTML-like labels are now
working in the current git version of graph-tool. Strings in the form
"<...>" are now automatically converted.

Cheers,
Tiago

Tiago de Paula Peixoto wrote:

...how to do this from the library API, instead of .dot files...

I have to admit I didn't even realize there was a graphviz library which
could be called directly; I'd always assumed graph-tool must be invoking
dot, neato etc via popen or similar!

HTML-like labels are now working in the current git version of graph-tool.
Strings in the form "<...>" are now automatically converted.

Thanks!
Tim