move1.dot 935 Bytes
Newer Older
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
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, arrowhead=normal]

	subgraph cluster1 {
		margin="10,10"
		labeljust="left"
		label = "Before"
		style=filled
		fillcolor=gray95

		node [shape=Mrecord, style=filled, colorscheme=spectral7]

		{
			rank = same
			b1 [label="{b:number|456}", fillcolor=6]
			a1 [label="{a:number|123}", fillcolor=6]
		}

		a1 -> b1 [style="dashed", label="Move", dir=back]
	}

	subgraph cluster2 {
		margin="10,10"
		labeljust="left"
		label = "After"
		style=filled
		fillcolor=gray95

		node [shape=Mrecord, style=filled, colorscheme=spectral7]

		{
			rank = same
			b2 [label="{b:null|}", fillcolor=1]
			a2 [label="{a:number|456}", fillcolor=6]
		}
		a2 -> b2 [style=invis, dir=back]
	}
	b1 -> b2 [style=invis]
}