From: Doni Pracner Date: Mon, 17 Feb 2014 18:08:57 +0000 (+0100) Subject: slika za roditelja sa puno dece izmenjena da prikazuje vrednost j X-Git-Tag: v14a~8 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=7078e227d35866ad1fb08ee5f5d09fd8cf4c998f;p=os2skripta.git slika za roditelja sa puno dece izmenjena da prikazuje vrednost j --- diff --git a/skripta-os2.tex b/skripta-os2.tex index b638d78..1a6ae56 100644 --- a/skripta-os2.tex +++ b/skripta-os2.tex @@ -634,14 +634,14 @@ END; \begin{minipage}{0.4\textwidth} \begin{tikzpicture} [proc/.style={circle,draw}] -\def \n {5} -\node[proc] (1) at (0,0) {1}; -\foreach \s in {2,...,\n} +\def \n {3} +\node[proc] (top) at (0,0) {0..4}; +\foreach \s in {0,...,\n} { - \node[proc] (\s) at (-3.5+\s,-2) {\s}; + \node[proc] (\s) at (-1.5+\s,-2) {\s}; } -\foreach \s in {2,...,\n} { - \draw [->] (1) to (\s); +\foreach \s in {0,...,\n} { + \draw [->] (top) to (\s); } \end{tikzpicture} \end{minipage}