Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132928 views
License: OTHER
1
\documentclass{article}
2
\usepackage[pdftex,active,tightpage]{preview}
3
\setlength\PreviewBorder{2mm}
4
5
\usepackage{tikz}
6
\usetikzlibrary{shapes.multipart, calc}
7
8
\begin{document}
9
\begin{preview}
10
\begin{tikzpicture}
11
\tikzstyle{bplus}=[rectangle split, rectangle split horizontal,rectangle split ignore empty parts,draw, fill=white]
12
\tikzstyle{every node}=[bplus]
13
\tikzstyle{level 1}=[sibling distance=60mm]
14
\tikzstyle{level 2}=[sibling distance=15mm]
15
16
\node {8 \nodepart{two} 14} [->]
17
child {node {2 \nodepart{two} 5}
18
child {node {0 \nodepart{two} 1}}
19
child {node {3 \nodepart{two} 4}}
20
child {node {6 \nodepart{two} 7}}
21
}
22
child {node {11}
23
child {node { 9 \nodepart{two} 10}}
24
child {node {12 \nodepart{two} 13}}
25
}
26
child {node {17}
27
child {node {15 \nodepart{two} 16}}
28
child {node {18 \nodepart{two} 19}}
29
};
30
\end{tikzpicture}
31
\end{preview}
32
\end{document}
33
34