Advertisement
Guest User

Untitled

a guest
Jul 10th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.01 KB | None | 0 0
  1. \documentclass{article}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage{tikz}
  4. \title{Derevyannykh.2.7}
  5. \author{devmishok }
  6. \date{July 2018}
  7.  
  8. \begin{document}
  9.  
  10. \maketitle
  11.  
  12. \section{Task7}
  13.  
  14. \begin{tikzpicture}[
  15. squarenode/.style={rectangle, draw=black!60, fill=green!5, thick, minimum size=5mm},
  16. roundnode/.style={circle, draw=black!60, fill=white!5, thick, minimum size=3mm}
  17. ]
  18. \node[squarenode] (T1) {$T1$}
  19. \node[roundnode] (P1) [right of=T1] {$p1$}
  20. \node[squarenode] (T2) [right of=P1] {$T2$}
  21. \node[roundnode] (P2) [right of=T2] {$p2$}
  22. \node[squarenode] (T3) [right of=P2] {$T3$}
  23. \node[roundnode] (CP2) [below left of=T3] {$cp2$}
  24. \node[roundnode] (CP1) [below left of=T2] {$cp1$}
  25.  
  26. \draw[->] (T1.east) -- (P1.west);
  27. \draw[->] (P1.east) -- (T2.west);
  28. \draw[->] (T2.east) -- (P2.west);
  29. \draw[->] (P2.east) -- (T3.west);
  30. \draw[->] (T3.south) -- (CP2.east);
  31. \draw[->] (CP.west) -- (T2.south);
  32. \draw[->] (T2.south) -- (CP1.east);
  33. \draw[->] (CP1.west) -- (T1.south);
  34.  
  35. \end{tikzpicture}
  36.  
  37.  
  38.  
  39.  
  40. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement