Skip to content

Commit

Permalink
slightly tune tree nodes, array cells, and tree distances in TikZ pic…
Browse files Browse the repository at this point in the history
…tures
  • Loading branch information
wojtask committed Oct 2, 2024
1 parent e8ff534 commit 21c9634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clrs4e-solutions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
\tikzset{
font=\footnotesize,
>={Stealth[scale length=1.5, scale width=1.25]},
element/.style = {text height=1ex, text depth=.1ex, inner sep=1pt},
element/.style = {text height=1ex, text depth=0ex, inner sep=0pt},
index/.style = {font=\scriptsize, rectangle, draw=none, fill=none, inner sep=0pt, minimum size=1ex},
vertex/.style = {element, circle, minimum size=\vertexsize, label distance=1pt},
tan vertex/.style = {vertex, fill=tan, draw=orange},
Expand All @@ -332,7 +332,7 @@
cell/.style = {element, draw, minimum size=\cellsize},
array/.style = {matrix of nodes, column sep=-\pgflinewidth, row 1/.style={nodes=cell}, nodes in empty cells},
indexed array/.style = {matrix of nodes, column sep=-\pgflinewidth, row 1/.style={nodes=index, row sep=.5ex}, row 2/.style={nodes=cell}, nodes in empty cells},
level/.style = {level distance=1.7\vertexsize, sibling distance=12\vertexsize/2^#1},
level/.style = {level distance=1.7\vertexsize, sibling distance=11\vertexsize/2^#1},
transition edge/.style n args = {3}{decorate, decoration={show path construction,
lineto code={
\draw[#1] (\tikzinputsegmentfirst) -- ($(\tikzinputsegmentfirst) ! #3 ! (\tikzinputsegmentlast)$);
Expand Down

0 comments on commit 21c9634

Please sign in to comment.