-
Notifications
You must be signed in to change notification settings - Fork 4
/
figures_kbp.tex
82 lines (69 loc) · 2.41 KB
/
figures_kbp.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
%
% -----
% MIML-RE Figures
% -----
%
\def\mimlStyles{
\tikzstyle{var}=[circle,thick,draw=black!75,fill=black!0,minimum size=10mm]
\tikzstyle{ovar}=[circle,thick,draw=black!75,fill=gray!20,minimum size=10mm]
}
\newcommand\dsPlate{
\begin{tikzpicture}[->,>=stealth,shorten >=1pt,auto,node distance=1.5cm and 0.75cm,
semithick]
\mimlStyles
\node[ovar] (y) [] {$y$};
\node[ovar] (x) [below =of y] {$x$};
\path (x) edge (y);
\end{tikzpicture}
}
\newcommand\miPlate{
\begin{tikzpicture}[->,>=stealth,shorten >=1pt,auto,node distance=1.5cm and 0.75cm,
semithick]
\mimlStyles
\node[ovar] (y) [] {$y$};
\node[var] (zTwo) [below =of y] {$z_2$};
\node[ovar] (xTwo) [below =of zTwo] {$x_2$};
\node[var] (zOne) [left =of zTwo] {$z_1$};
\node[ovar] (xOne) [left =of xTwo] {$x_1$};
\node[var] (zThree) [right =of zTwo] {$z_3$};
\node[ovar] (xThree) [right =of xTwo] {$x_3$};
\path (xOne) edge (zOne)
(xTwo) edge (zTwo)
(xThree) edge (zThree)
(zOne) edge (y)
(zTwo) edge (y)
(zThree) edge (y);
\end{tikzpicture}
}
\newcommand\mimlPlate{
\begin{tikzpicture}[->,>=stealth,shorten >=1pt,auto,node distance=1.5cm and 0.75cm,
semithick]
\mimlStyles
\node[ovar] (yOne) {$y_1$};
\node[ovar] (yTwo) [right =of yOne] {$y_2$};
\node[] (yDots) [right =of yTwo] {$\dots$};
\node[ovar] (yNMin) [right =of yDots] {$y_{n-1}$};
\node[ovar] (yN) [right =of yNMin] {$y_n$};
\node[var] (zTwo) [below =of yDots] {$z_2$};
\node[ovar] (xTwo) [below =of zTwo] {$x_2$};
\node[var] (zOne) [left =of zTwo] {$z_1$};
\node[ovar] (xOne) [left =of xTwo] {$x_1$};
\node[var] (zThree) [right =of zTwo] {$z_3$};
\node[ovar] (xThree) [right =of xTwo] {$x_3$};
\path (xOne) edge (zOne)
(xTwo) edge (zTwo)
(xThree) edge (zThree)
(zOne) edge (yOne)
edge (yTwo)
edge (yNMin)
edge (yN)
(zTwo) edge (yOne)
edge (yTwo)
edge (yNMin)
edge (yN)
(zThree) edge (yOne)
edge (yTwo)
edge (yNMin)
edge (yN);
\end{tikzpicture}
}