Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
probml
GitHub Repository: probml/pyprobml
Path: blob/master/tikz/func-ad-triangle-split-tikz.tex
1191 views
1
\documentclass[tikz, border=2pt]{standalone}
2
% main document, called main.tex
3
\usepackage{tikz}
4
5
\begin{document}
6
7
\usetikzlibrary{decorations.pathreplacing}
8
9
\begin{tikzpicture}[
10
scale=1.0,
11
inv/.style={circle, draw=green!60, fill=green!5, very thick, minimum size=7mm},
12
opv/.style={circle, draw=black, very thick, minimum size=7mm},
13
]
14
\node[inv] (x) at (-2,3) {$x$};
15
\node[opv] (a) at (-2,2) {$a$};
16
17
\node[inv] (x1) at (0,2) {$x_1$};
18
\node[inv] (x2) at (1,2) {$x_2$};
19
\node[opv] (b) at (1,1) {$b$};
20
\node[opv] (c) at (0,0) {$c$};
21
22
\draw (x) edge[->] (a)
23
(x1) edge[->] (c)
24
(x2) edge[->] (b)
25
(b) edge[->] (c);
26
27
%% \draw[
28
%% decorate,decoration={brace,amplitude=10pt}
29
%% ] (-3,1.5) -- (-3,3.5) node[black,midway,xshift=-20pt] {$h$};
30
\draw[
31
decorate,decoration={brace,amplitude=10pt,mirror}
32
] (2,-.5) -- (2,2.5) node[black,midway,xshift=25pt] {$f_{\{b,c\}}$};
33
\end{tikzpicture}
34
35
\end{document}
36
37