tutorial.dot 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. digraph {
  2. compound=true
  3. fontname="Inconsolata, Consolas"
  4. fontsize=10
  5. margin="0,0"
  6. ranksep=0.2
  7. penwidth=0.5
  8. node [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5]
  9. edge [fontname="Inconsolata, Consolas", fontsize=10]
  10. subgraph cluster1 {
  11. margin="10,10"
  12. labeljust="left"
  13. label = "Document"
  14. style=filled
  15. fillcolor=gray95
  16. node [shape=Mrecord, style=filled, colorscheme=spectral7]
  17. root [label="{object|}", fillcolor=3]
  18. {
  19. hello [label="{string|\"hello\"}", fillcolor=5]
  20. t [label="{string|\"t\"}", fillcolor=5]
  21. f [label="{string|\"f\"}", fillcolor=5]
  22. n [label="{string|\"n\"}", fillcolor=5]
  23. i [label="{string|\"i\"}", fillcolor=5]
  24. pi [label="{string|\"pi\"}", fillcolor=5]
  25. a [label="{string|\"a\"}", fillcolor=5]
  26. world [label="{string|\"world\"}", fillcolor=5]
  27. true [label="{true|}", fillcolor=7]
  28. false [label="{false|}", fillcolor=2]
  29. null [label="{null|}", fillcolor=1]
  30. i1 [label="{number|123}", fillcolor=6]
  31. pi1 [label="{number|3.1416}", fillcolor=6]
  32. array [label="{array|size=4}", fillcolor=4]
  33. a1 [label="{number|1}", fillcolor=6]
  34. a2 [label="{number|2}", fillcolor=6]
  35. a3 [label="{number|3}", fillcolor=6]
  36. a4 [label="{number|4}", fillcolor=6]
  37. }
  38. edge [arrowhead=vee]
  39. root -> { hello; t; f; n; i; pi; a }
  40. array -> { a1; a2; a3; a4 }
  41. edge [arrowhead=none]
  42. hello -> world
  43. t -> true
  44. f -> false
  45. n -> null
  46. i -> i1
  47. pi -> pi1
  48. a -> array
  49. }
  50. }