1digraph { 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, arrowhead=normal] 11 12 subgraph cluster1 { 13 margin="10,10" 14 labeljust="left" 15 label = "Before" 16 style=filled 17 fillcolor=gray95 18 19 node [shape=Mrecord, style=filled, colorscheme=spectral7] 20 21 { 22 rank = same 23 b1 [label="{b:number|456}", fillcolor=6] 24 a1 [label="{a:number|123}", fillcolor=6] 25 } 26 27 a1 -> b1 [style="dashed", label="Move", dir=back] 28 } 29 30 subgraph cluster2 { 31 margin="10,10" 32 labeljust="left" 33 label = "After" 34 style=filled 35 fillcolor=gray95 36 37 node [shape=Mrecord, style=filled, colorscheme=spectral7] 38 39 { 40 rank = same 41 b2 [label="{b:null|}", fillcolor=1] 42 a2 [label="{a:number|456}", fillcolor=6] 43 } 44 a2 -> b2 [style=invis, dir=back] 45 } 46 b1 -> b2 [style=invis] 47}