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