Advertisement
Guest User

Untitled

a guest
Jul 12th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{tikz}
  3.  
  4. usetikzlibrary{arrows,automata}
  5.  
  6. begin{document}
  7. begin{tikzpicture}[narray/.style={circle,fill=white,draw},node distance=3cm,
  8. norm/.style={circle,fill=black,draw,minimum size=0.2cm}]
  9.  
  10. node[narray] (q1) {tikzdraw[black, fill=black] (0,0) circle (.7ex);} ;
  11. node[norm] (p1) [right of=q1] {};
  12.  
  13. path
  14. (q1) edge [->,>=latex',thick] node[above] {A} (p1);
  15. end{tikzpicture}
  16. end{document}
  17.  
  18. documentclass{article}
  19. usepackage{tikz}
  20. usetikzlibrary{arrows,petri,positioning,decorations.markings}
  21.  
  22. begin{document}
  23.  
  24. begin{tikzpicture}[
  25. node distance=3cm,
  26. norm/.style={
  27. circle,
  28. fill=black,
  29. draw,
  30. minimum size=0.2cm
  31. },
  32. >= latex
  33. ]
  34.  
  35. node[place,tokens=1,label={80:$n$}] (p1) {} ;
  36. node[norm,below right=of p1] (q1) {};
  37. node[place,tokens=1,above right=of q1,label={80:$m$}] (p2) {} ;
  38.  
  39. draw[->]
  40. (p1) --
  41. (p2)
  42. node[pos=0.15,above] {$[2..3]$}
  43. node[pos=0.85,above] {$[1..2]$}
  44. ;
  45. draw[->]
  46. (p1) --
  47. (q1)
  48. node[pos=0.05,below=6pt] {$[4]$}
  49. node[midway,draw,fill=white] {$t$}
  50. ;
  51. begin{scope}[decoration={
  52. markings,
  53. mark=at position 0.15 with {arrow{>}},
  54. mark=at position 0.9 with {arrow{<}}
  55. }
  56. ]
  57. draw[-,postaction=decorate]
  58. (p2) --
  59. (q1)
  60. ;
  61. end{scope}
  62. end{tikzpicture}
  63.  
  64. end{document}
  65.  
  66. node[pos=<value>,<position>] {text}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement