Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
probml
GitHub Repository: probml/pyprobml
Path: blob/master/tikz/func-ad-triangle-full-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
\begin{tikzpicture}[
9
scale=1.0,
10
inv/.style={circle, draw=green!60, fill=green!5, very thick, minimum size=7mm},
11
opv/.style={circle, draw=black, very thick, minimum size=7mm},
12
]
13
\node[inv] (x) at (0,3) {$x$};
14
\node[opv] (a) at (0,2) {$a$};
15
\node[opv] (b) at (1,1) {$b$};
16
\node[opv] (c) at (0,0) {$c$};
17
\draw (x) edge[->] (a)
18
(a) edge[->] (b)
19
(a) edge[->] (c)
20
(b) edge[->] (c);
21
22
\draw[
23
decorate,decoration={brace,amplitude=10pt}
24
] (-1,-.5) -- (-1,3.5) node[black,midway,xshift=-20pt] {$f$};
25
\end{tikzpicture}
26
27
\end{document}
28
29