Skip to content

Instantly share code, notes, and snippets.

@adamatan
Created March 19, 2013 12:21
Show Gist options
  • Select an option

  • Save adamatan/5195647 to your computer and use it in GitHub Desktop.

Select an option

Save adamatan/5195647 to your computer and use it in GitHub Desktop.
Linked list in graphviz
digraph foo {
rankdir=LR;
node [shape=record];
a [label="{ <data> 12 | <ref> }", width=1.2]
b [label="{ <data> 99 | <ref> }"];
c [label="{ <data> 37 | <ref> }"];
d [shape=box];
a:ref:c -> b:data [arrowhead=vee, arrowtail=dot, dir=both, tailclip=false, arrowsize=1.2];
b:ref:c -> c:data [arrowhead=vee, arrowtail=dot, dir=both, tailclip=false];
c:ref:c -> d [arrowhead=vee, arrowtail=dot, dir=both, tailclip=false];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment