summaryrefslogtreecommitdiffstats
path: root/src/s3select/rapidjson/doc/diagram/tutorial.dot
blob: 138ddc381d4f39c1b60e571f187c8041c1febcb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
digraph {
	compound=true
	fontname="Inconsolata, Consolas"
	fontsize=10
	margin="0,0"
	ranksep=0.2
	penwidth=0.5
	
	node [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5]
	edge [fontname="Inconsolata, Consolas", fontsize=10]

	subgraph cluster1 {
		margin="10,10"
		labeljust="left"
		label = "Document"
		style=filled
		fillcolor=gray95
		node [shape=Mrecord, style=filled, colorscheme=spectral7]
		
		root [label="{object|}", fillcolor=3]

		{			
			hello [label="{string|\"hello\"}", fillcolor=5]
			t [label="{string|\"t\"}", fillcolor=5]
			f [label="{string|\"f\"}", fillcolor=5]
			n [label="{string|\"n\"}", fillcolor=5]
			i [label="{string|\"i\"}", fillcolor=5]
			pi [label="{string|\"pi\"}", fillcolor=5]
			a [label="{string|\"a\"}", fillcolor=5]

			world [label="{string|\"world\"}", fillcolor=5]
			true [label="{true|}", fillcolor=7]
			false [label="{false|}", fillcolor=2]
			null [label="{null|}", fillcolor=1]
			i1 [label="{number|123}", fillcolor=6]
			pi1 [label="{number|3.1416}", fillcolor=6]
			array [label="{array|size=4}", fillcolor=4]

			a1 [label="{number|1}", fillcolor=6]
			a2 [label="{number|2}", fillcolor=6]
			a3 [label="{number|3}", fillcolor=6]
			a4 [label="{number|4}", fillcolor=6]
		}

		edge [arrowhead=vee]
		root -> { hello; t; f; n; i; pi; a }		
		array -> { a1; a2; a3; a4 }

		edge [arrowhead=none]
		hello -> world
		t -> true
		f -> false
		n -> null
		i -> i1
		pi -> pi1
		a -> array
	}
}