Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. documentclass{scrartcl}
  2. usepackage[utf8]{inputenc}
  3. usepackage{tikz}
  4. usetikzlibrary{automata,positioning,arrows,matrix,backgrounds,calc}
  5. usetikzlibrary{decorations.text}
  6. usetikzlibrary{decorations.pathmorphing}
  7.  
  8. tikzset{
  9. node_standard/.style = {
  10. ->,>=stealth',shorten >=1pt,node distance=2.5cm,auto,thick,
  11. main node/.style={circle,fill=gray!25,draw,font=sffamilyLargebfseries},
  12. black node/.style={circle,fill=black,text=white,draw,font=sffamilyLargebfseries}
  13. }
  14. }
  15.  
  16. begin{document}
  17. begin{center}
  18. begin{tikzpicture} [node_standard, node distance=2cm]%
  19.  
  20. node[main node] (1) {$s$};
  21. node[main node] (2) at (2cm,1cm) {};
  22. node[black node] (3) at (1.6cm,-1cm) {$u$};
  23. node[main node] (4) [below right of=2] {$t$};
  24.  
  25. path[path_standard]
  26. (2) edge node {} (1)
  27. (2) edge node {} (4)
  28. (3) edge node {} (1)
  29. edge node {} (2)
  30. (4) edge node {} (3);
  31.  
  32. end{tikzpicture}
  33. \
  34. \
  35. ole ole ole
  36. end{center}
  37. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement