k-3-3.tex 535 B

123456789101112131415161718192021
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tikz}
  3. \usetikzlibrary{arrows,positioning}
  4. \begin{document}
  5. \tikzstyle{vertexs}=[draw,fill=black,circle,minimum size=4pt,inner sep=0pt]
  6. \begin{tikzpicture}
  7. \foreach \x in {0,1,2}
  8. \foreach \y in {0,1,2}{
  9. \node (a)[vertexs] at (\y,0) {};
  10. \node (b)[vertexs] at (\x,1) {};
  11. \draw (a) -- (b);
  12. }
  13. % \foreach \x in {0,1,2}{
  14. % \draw (\x,0) circle (2pt);
  15. % \draw (\x,1) circle (2pt);
  16. % }
  17. \end{tikzpicture}
  18. \end{document}