Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. ===== USE THESE HEADERS =====
  2.  
  3. \usepackage{tikz}
  4. \usetikzlibrary{positioning}
  5.  
  6. =============================
  7.  
  8. \begin{tikzpicture}[-latex,auto,node distance=4cm and 5cm,on grid,
  9. semithick, state/.style ={ circle, top color=white, bottom color=white!20, draw, black, text=black, minimum width=1cm}]
  10. \node [ state ] (C) {Draw};
  11. \node [ state ] (A) [above left = of C] {Win};
  12. \node [ state ] (B) [above right = of C] {Lose};
  13. \path (A) edge [loop left] node [left] {$1/10$} (A);
  14. \path (B) edge [loop right] node [right] {$2/10$} (B);
  15. \path (C) edge [loop below] node [below] {$4/10$} (C);
  16. \path (C) edge [bend left =25] node [ below =0.15 cm] {$3/10$} (A);
  17. \path (A) edge [bend right = -15] node [ below =0.15 cm] {$4/10$} (C);
  18. \path (A) edge [bend left =25] node [ above ] {$6/10$} (B);
  19. \path (B) edge [bend left =15] node [ below =0.15 cm] {$3/10$} (A);
  20. \path (C) edge [bend left =15] node [ below =0.15 cm] {$2/10$} (B);
  21. \path (B) edge [bend right = -25] node [ below =0.15 cm] {$5/10$} (C);
  22. \end{tikzpicture}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement