Debian Codegraph @

doc/citp-manual/csp.tikz.tex

raw
1 \tikzstyle{goal} = [draw, rectangle, minimum width=1cm, minimum height=2em, very thick, rounded corners=1mm]
2 \tikzstyle{ded} = [-stealth,very thick]
3 \begin{tikzpicture}[node distance=3cm]
4 \node at (0,4) (g) [goal] {g};
5 \node at (-3,2) (g-1) [goal] {g-1};
6 \node at (0,2) (g-2) [goal] {g-2};
7 \node at (3,2) (g-3) [goal] {g-3};
8 \node [left of=g,node distance=0.5cm,anchor=east]
9 {\texttt{\texttt{:csp \{ eq1 .\ eq2 .\ eq 3 .\ \}}}};
10 \draw[rounded corners=3mm] (-4,1.4) rectangle (4,2.6);
11 \path[ded] (g) edge node[fill=white] {:csp} (g-1)
12 edge node[fill=white] {:csp} (g-2)
13 edge node[fill=white] {:csp} (g-3) ;
14 \node at (-3,0.5) (a1) {g + \texttt{\{ eq 1\ .\ \}}} ;
15 \node at ( 0,0.5) (a2) {g + \texttt{\{ eq 2\ .\ \}}} ;
16 \node at ( 3,0.5) (a3) {g + \texttt{\{ eq 3\ .\ \}}} ;
17 \path[-stealth,dashed] (a1) edge (g-1) ;
18 \path[-stealth,dashed] (a2) edge (g-2) ;
19 \path[-stealth,dashed] (a3) edge (g-3) ;
20 \node at (-4.2,2) [anchor=east] {\texttt{:apply(RD)}} ;
21 \end{tikzpicture}