Skip to content

Instantly share code, notes, and snippets.

@jogojapan
Created June 30, 2013 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jogojapan/5894353 to your computer and use it in GitHub Desktop.
Save jogojapan/5894353 to your computer and use it in GitHub Desktop.
AVL tree example
digraph {
graph [ordering="out"]
node [share=circle]
n9 [label="9"]
n12 [label="12"]
n14 [label="14"]
n17 [label="17"]
n19 [label="19"]
n23 [label="23"]
n24 [style="invis"]
n50 [label="50"]
n54 [label="54"]
n53 [style="invis"]
n67 [label="67"]
n72 [label="72"]
n76 [label="76"]
n50 -> n17
n17 -> n12
n12 -> n9
n12 -> n14
n17 -> n23
n23 -> n19
n23 -> n24 [style="invis"]
n50 -> n72
n72 -> n54
n54 -> n53 [style="invis"]
n54 -> n67
n72 -> n76
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment