2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/tikz/b-tree/b-tree-2.tex
2012-08-09 07:04:38 +02:00

32 lines
968 B
TeX

\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{tikz}
\usetikzlibrary{shapes.multipart, calc}
\begin{document}
\begin{preview}
\begin{tikzpicture}
\tikzstyle{bplus}=[rectangle split, rectangle split horizontal,rectangle split ignore empty parts,draw, fill=white]
\tikzstyle{every node}=[bplus]
\tikzstyle{level 1}=[sibling distance=60mm]
\tikzstyle{level 2}=[sibling distance=15mm]
\node {8 \nodepart{two} 14} [->]
child {node {2 \nodepart{two} 5}
child {node {0 \nodepart{two} 1}}
child {node {3 \nodepart{two} 4}}
child {node {6 \nodepart{two} 7}}
}
child {node {11}
child {node { 9 \nodepart{two} 10}}
child {node {12 \nodepart{two} 13}}
}
child {node {17}
child {node {15 \nodepart{two} 16}}
child {node {18 \nodepart{two} 19}}
};
\end{tikzpicture}
\end{preview}
\end{document}