fork download
  1. \documentclass[margin=0.5cm]{standalone}
  2. \usepackage{tikz,newtxtext,newtxmath}
  3. \usetikzlibrary{graphs,graphdrawing,calc}
  4. \usegdlibrary{trees,force,circular}
  5. \begin{document}
  6.  
  7. \begin{tikzpicture}[
  8. nodes={draw,fill=white,circle,minimum size=0.65cm,inner sep=0.1cm},
  9. foo/.style={-latex},
  10. lose/.style={fill=blue!70,text=white},
  11. win/.style={fill=red!70,text=white},
  12. ]
  13. \node (0) {};
  14. \node (1) at ($(0)+(60:1)$) {};
  15. \node (2) at ($(0)+(0:1)$) {};
  16. \node (3) at ($(1)+(0:1)$) {};
  17. \node[win] (4) at ($(3)+(30:1)$) {W};
  18. \node[win] (5) at ($(3)+(-30:1)$) {W};
  19. \node[lose] (6) at ($(4)+(90:1)$) {L};
  20. \node[lose] (7) at ($(5)+(-90:1)$) {L};
  21. \node (8) at ($(5)+(30:1)$) {};
  22. \node[win] (9) at ($(7)+(-90:1)$) {W};
  23. \node[lose] (10) at ($(9)+(-90:1)$) {L};
  24. \node (11) at ($(9)+cos(30)*(1,0)$) {};
  25.  
  26. \draw [foo] (0) -- (1);
  27. \draw [foo] (1) -- (2);
  28. \draw [foo] (2) -- (0);
  29. \draw [foo] (2) -- (9);
  30. \draw [foo] (3) -- (1);
  31. \draw [foo] (4) -- (3);
  32. \draw [foo] (5) -- (3);
  33. \draw [foo] (4) -- (6);
  34. \draw [foo] (5) -- (7);
  35. \draw [foo] (8) -- (4);
  36. \draw [foo] (8) -- (5);
  37. \draw [foo] (11) -- (8);
  38. \draw [foo] (9) -- (11);
  39. \draw [foo] (9) -- (10);
  40. \end{tikzpicture}
  41.  
  42. \end{document}
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty