simpledom.dot 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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, arrowhead=normal]
  10. {
  11. node [shape=record, fontsize="8", margin="0.04", height=0.2, color=gray]
  12. srcjson [label="\{|\"|p|r|o|j|e|c|t|\"|:|\"|r|a|p|i|d|j|s|o|n|\"|,|\"|s|t|a|r|s|\"|:|1|0|\}"]
  13. dstjson [label="\{|\"|p|r|o|j|e|c|t|\"|:|\"|r|a|p|i|d|j|s|o|n|\"|,|\"|s|t|a|r|s|\"|:|1|1|\}"]
  14. }
  15. {
  16. node [shape="box", style="filled", fillcolor="gray95"]
  17. Document2 [label="(Modified) Document"]
  18. Writer
  19. }
  20. subgraph cluster1 {
  21. margin="10,10"
  22. labeljust="left"
  23. label = "Document"
  24. style=filled
  25. fillcolor=gray95
  26. node [shape=Mrecord, style=filled, colorscheme=spectral7]
  27. root [label="{object|}", fillcolor=3]
  28. {
  29. project [label="{string|\"project\"}", fillcolor=5]
  30. rapidjson [label="{string|\"rapidjson\"}", fillcolor=5]
  31. stars [label="{string|\"stars\"}", fillcolor=5]
  32. ten [label="{number|10}", fillcolor=6]
  33. }
  34. edge [arrowhead=vee]
  35. root -> { project; stars }
  36. edge [arrowhead="none"]
  37. project -> rapidjson
  38. stars -> ten
  39. }
  40. srcjson -> root [label=" Parse()", lhead="cluster1"]
  41. ten -> Document2 [label=" Increase \"stars\"", ltail="cluster1" ]
  42. Document2 -> Writer [label=" Traverse DOM by Accept()"]
  43. Writer -> dstjson [label=" Output to StringBuffer"]
  44. }