Small changes to tikz drawings.
This commit is contained in:
parent
84b7894b36
commit
9b20a5f195
|
@ -365,20 +365,20 @@ level 2/.style={sibling distance=1.25cm},
|
|||
]
|
||||
% labels for plus node children, with arrows
|
||||
\node[left=2pt of sl, highlight_color, inner sep=0pt] (sl-label) {$\stree_\lchild$};
|
||||
\draw[<-|, highlight_color] (sl) -- (sl-label);
|
||||
\node[below=2pt of sr, highlight_color, inner sep=0pt] (sr-label) {$\stree_\rchild$};
|
||||
\draw[<-|, highlight_color] (sr) -- (sr-label);
|
||||
\node[below=2pt of spl, inner sep=0pt, highlight_color](spl-label) {$\stree_\lchild'$};
|
||||
\draw[<-|, highlight_color] (spl) -- (spl-label);
|
||||
\draw[highlight_color] (sl) -- (sl-label);
|
||||
\node[right=2pt of sr, highlight_color, inner sep=0pt] (sr-label) {$\stree_\rchild$};
|
||||
\draw[highlight_color] (sr) -- (sr-label);
|
||||
\node[left=2pt of spl, inner sep=0pt, highlight_color](spl-label) {$\stree_\lchild'$};
|
||||
\draw[highlight_color] (spl) -- (spl-label);
|
||||
\node[right=2pt of spr, highlight_color, inner sep=0] (spr-label) {$\stree_\rchild'$};
|
||||
\draw[<-|, highlight_color] (spr) -- (spr-label);
|
||||
\draw[highlight_color] (spr) -- (spr-label);
|
||||
\node[above left=2pt of tl, inner sep=0pt, highlight_color] (tl-label) {$\etree_\lchild$};
|
||||
\draw[<-|, highlight_color] (tl) -- (tl-label);
|
||||
\draw[highlight_color] (tl) -- (tl-label);
|
||||
\node[above right=2pt of tr, highlight_color, inner sep=0pt] (tr-label) {$\etree_\rchild$};
|
||||
\node[above = 2pt of root, highlight_color, inner sep=0pt, font=\bfseries] (root-label) {$\etree$};
|
||||
\node[above = 2pt of s, highlight_color, inner sep=0pt, font=\bfseries] (s-label) {$\stree$};
|
||||
\node[above = 2pt of sp, highlight_color, inner sep=0pt, font=\bfseries] (sp-label) {$\stree'$};
|
||||
\draw[<-|, highlight_color] (tr) -- (tr-label);
|
||||
\draw[highlight_color] (tr) -- (tr-label);
|
||||
% \draw[<-|, highlight_color] (s) -- (s-label);
|
||||
% \draw[<-|, highlight_color] (sp) -- (sp-label);
|
||||
% \draw[<-|, highlight_color] (root) -- (root-label);
|
||||
|
|
18
macros.tex
18
macros.tex
|
@ -112,13 +112,13 @@
|
|||
default_node/.style={align=center, inner sep=0pt},
|
||||
pattern_node/.style={fill=gray!50, draw=black, semithick, inner sep=0pt, minimum size = 2pt, circle},
|
||||
tree_node/.style={default_node, draw=black, black, circle, text width=0.3cm, font=\bfseries, minimum size=0.65cm},
|
||||
highlight_color/.style={blue}, wght_color/.style={red},
|
||||
highlight_treenode/.style={tree_node, draw=blue, blue},
|
||||
highlight_color/.style={black}, wght_color/.style={black},
|
||||
highlight_treenode/.style={tree_node, draw=black, black},
|
||||
edge from parent path={(\tikzparentnode) -- (\tikzchildnode)}
|
||||
}
|
||||
%Subgraph patterns
|
||||
\newcommand{\ed}{
|
||||
\begin{tikzpicture}[every path/.style={very thick, draw}]%[baseline=0.00005cm]
|
||||
\begin{tikzpicture}[every path/.style={thick, draw}]%[baseline=0.00005cm]
|
||||
%\begin{scope}[yshift=-0.1cm]
|
||||
\node at (0, 0)[pattern_node](bottom){};
|
||||
\node [above=0.07cm of bottom, pattern_node] (top){};
|
||||
|
@ -127,7 +127,7 @@
|
|||
\end{tikzpicture}
|
||||
}
|
||||
\newcommand{\twodis}{
|
||||
\begin{tikzpicture}[every path/.style={very thick, draw}]
|
||||
\begin{tikzpicture}[every path/.style={thick, draw}]
|
||||
\node at (0, 0) [pattern_node] (bottom1) {};
|
||||
\node[above=0.07cm of bottom1, pattern_node] (top1) {} edge (bottom1);
|
||||
\node at (0.14, 0) [pattern_node] (bottom2) {};
|
||||
|
@ -135,7 +135,7 @@
|
|||
\end{tikzpicture}
|
||||
}
|
||||
\newcommand{\twopath}{
|
||||
\begin{tikzpicture}[every path/.style={very thick, draw}]
|
||||
\begin{tikzpicture}[every path/.style={thick, draw}]
|
||||
\node at (0, 0.08) [pattern_node] (top){};
|
||||
\node [below left=0.075cm and 0.05cm of top, pattern_node](left){};
|
||||
\node[below right=0.075cm and 0.05cm of top, pattern_node](right){};
|
||||
|
@ -144,7 +144,7 @@
|
|||
\end{tikzpicture}
|
||||
}
|
||||
\newcommand{\threedis}{
|
||||
\begin{tikzpicture}[every path/.style={very thick, draw}]
|
||||
\begin{tikzpicture}[every path/.style={thick, draw}]
|
||||
\node at (0, 0) [pattern_node] (bottom1) {};
|
||||
\node[above=0.07cm of bottom1, pattern_node] (top1) {} edge (bottom1);
|
||||
\node at (0.14, 0) [pattern_node] (bottom2) {};
|
||||
|
@ -154,7 +154,7 @@
|
|||
\end{tikzpicture}
|
||||
}
|
||||
\newcommand{\tri}{
|
||||
\begin{tikzpicture}[every path/.style={very thick, draw}]
|
||||
\begin{tikzpicture}[every path/.style={ thick, draw}]
|
||||
\node at (0, 0.08) [pattern_node] (top){};
|
||||
\node [below left=0.08cm and 0.01cm of top, pattern_node](left){} edge (top);
|
||||
\node[below right=0.08cm and 0.01cm of top, pattern_node](right){} edge (top) edge (left);
|
||||
|
@ -162,7 +162,7 @@
|
|||
}
|
||||
\newcommand{\twopathdis}{\ed~\twopath}
|
||||
\newcommand{\threepath}{
|
||||
\begin{tikzpicture}[every path/.style={very thick, draw}]
|
||||
\begin{tikzpicture}[every path/.style={thick, draw}]
|
||||
\node at (0, 0) [pattern_node] (node1a) {};
|
||||
\node [above=0.07cm of node1a, pattern_node] (node1b) {} edge (node1a);
|
||||
\node [right=0.099cm of node1a, pattern_node] (node2b) {}; %edge [semithick] (node1b);
|
||||
|
@ -171,7 +171,7 @@
|
|||
\end{tikzpicture}
|
||||
}
|
||||
\newcommand{\oneint}{
|
||||
\begin{tikzpicture}[level/.style={sibling distance=0.14cm, level distance=0.15cm}, every path/.style={very thick, draw}]
|
||||
\begin{tikzpicture}[level/.style={sibling distance=0.14cm, level distance=0.15cm}, every path/.style={thick, draw}]
|
||||
\node at (0, 0) [pattern_node] {} [grow=down]
|
||||
child{node [pattern_node]{}}
|
||||
child {node [pattern_node] {}}
|
||||
|
|
Loading…
Reference in a new issue