mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
dashed request for resource
This commit is contained in:
parent
0485428f29
commit
d0b2462b1e
2 changed files with 6 additions and 5 deletions
|
@ -6,7 +6,8 @@
|
|||
\usetikzlibrary{arrows,positioning, calc,lindenmayersystems,decorations.pathmorphing,intersections}
|
||||
\tikzstyle{resource}= [draw,minimum size=16pt,inner sep=0pt]
|
||||
\tikzstyle{process} = [draw,minimum size=16pt,inner sep=0pt,circle]
|
||||
\tikzstyle{allocation} = [->,thick,arrows={-latex}]
|
||||
\tikzstyle{allocated} = [->,thick,arrows={-latex}]
|
||||
\tikzstyle{requested} = [<-,thick,arrows={latex-}, dashed]
|
||||
|
||||
\begin{document}
|
||||
\begin{preview}
|
||||
|
@ -19,10 +20,10 @@
|
|||
\node (p3)[process] at (2,1) {$P_3$};
|
||||
\node (r4)[resource] at (0,0) {$R_4$};
|
||||
|
||||
\draw[allocation] (r1) -- (p1);
|
||||
\draw[allocation] (r2) -- (p2);
|
||||
\draw[allocation] (r3) -- (p2);
|
||||
\draw[allocation] (p3) -- (r3);
|
||||
\draw[allocated] (r1) -- (p1);
|
||||
\draw[allocated] (r2) -- (p2);
|
||||
\draw[allocated] (r3) -- (p2);
|
||||
\draw[requested] (r3) -- (p3);
|
||||
\end{tikzpicture}
|
||||
\end{preview}
|
||||
\end{document}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue