graph-v6-e8.tex 695 B

12345678910111213141516171819202122
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{ifthen}
  3. \usepackage{tikz}
  4. \usetikzlibrary{calc}
  5. \begin{document}
  6. \tikzstyle{vertex}=[draw,black,fill=blue,circle,minimum size=10pt,inner sep=0pt]
  7. \tikzstyle{edge}=[very thick]
  8. \begin{tikzpicture}
  9. \node (a)[vertex,fill=lime] at (1,0) {};
  10. \node (b)[vertex,fill=red] at (0,1) {};
  11. \node (c)[vertex,fill=lime] at (1,2) {};
  12. \node (d)[vertex,fill=blue] at (2,2) {};
  13. \node (e)[vertex,fill=red] at (3,1) {};
  14. \node (f)[vertex,fill=blue] at (2,0) {};
  15. \draw[edge] (a) -- (b) -- (c) -- (d) -- (e) -- (f) -- (a) -- cycle;
  16. \draw[edge] (b) -- (f);
  17. \draw[edge] (b) -- (d);
  18. \end{tikzpicture}
  19. \end{document}