html2.gv 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. digraph G {
  2. rankdir=LR
  3. node [shape=plaintext]
  4. a [
  5. label=<
  6. <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
  7. <TR><TD ROWSPAN="3" BGCOLOR="yellow">class</TD></TR>
  8. <TR><TD PORT="here" BGCOLOR="lightblue">qualifier</TD></TR>
  9. </TABLE>>
  10. ]
  11. b [shape=ellipse style=filled
  12. href="http://www.graphviz.org/content/node-shapes"
  13. label=<
  14. <TABLE BGCOLOR="bisque" href="http://www.graphviz.org/content/node-shapes#html">
  15. <TR><TD COLSPAN="3" BGCOLOR="bisque" href="http://go/wiki/Elephant">elephant</TD>
  16. <TD ROWSPAN="2" BGCOLOR="chartreuse"
  17. VALIGN="bottom" ALIGN="right">two</TD> </TR>
  18. <TR><TD COLSPAN="2" ROWSPAN="2">
  19. <TABLE BGCOLOR="grey" href="http://go/wiki/Grey">
  20. <TR> <TD href="http://go/wiki/Sweet_corn">corn</TD> </TR>
  21. <TR> <TD BGCOLOR="yellow">c</TD> </TR>
  22. <TR> <TD href="http://go/wiki/F">f</TD> </TR>
  23. </TABLE> </TD>
  24. <TD BGCOLOR="white">penguin</TD>
  25. </TR>
  26. <TR> <TD COLSPAN="2" BORDER="4" ALIGN="right" PORT="there">4</TD> </TR>
  27. </TABLE>>
  28. ]
  29. c [
  30. label=<long line 1<BR/>line 2<BR ALIGN="LEFT"/>line 3<BR ALIGN="RIGHT"/>>
  31. ]
  32. subgraph { rank=same b c }
  33. a:here -> b:there [dir=both, arrowtail = diamond]
  34. c -> b
  35. d [shape=triangle]
  36. d -> c [label=<
  37. <TABLE>
  38. <TR><TD BGCOLOR="red" WIDTH="10"> </TD>
  39. <TD>Edge labels<BR/>also</TD>
  40. <TD BGCOLOR="blue" WIDTH="10"> </TD>
  41. </TR>
  42. </TABLE>>
  43. ]
  44. }