about summary refs log tree commit diff
path: root/networktikz/main.tex
blob: 90590aa55c17614f0d98ed666c84a285885e20cf (plain)
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
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit, positioning}

\begin{document}

\begin{tikzpicture}

\node (base) at (0, 0) {};

% generators
\foreach \m in {1, 2, 3} {
    \node[draw, below = of base] (generator-\m) at (0, \m) {Generator};
}

% NFW calculators
\foreach \m in {1, 2, 3} {
    \node[draw, right = of generator-\m] (NFW-\m) {NFW};
}

% generatortraefik
\node[draw, right = of generator-2] (generatortraefik) {traefik};

% connect the generators with the generatortraefik
\foreach \l in {1, 2, 3} {
    \draw (generator-\l.east) -- (generatortraefik.west) {};
}

% connect the generatortraefik with the NFW nodes
\foreach \l in {1, 2, 3} {
    \draw (generatortraefik.east) -- (NFW-\l.west) {};
}

\node[draw, fit=
    (generator-1)
    (generator-2)
    (generator-3)
    (generatortraefik)
    (NFW-1)
    (NFW-2)
    (NFW-3)
] (boundary) {};

\end{tikzpicture}

\end{document}