2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/presentations/Diskrete-Mathematik/LaTeX/graphs/k-3-3.tex
2013-04-18 08:57:48 +02:00

20 lines
535 B
TeX

\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,positioning}
\begin{document}
\tikzstyle{vertexs}=[draw,fill=black,circle,minimum size=4pt,inner sep=0pt]
\begin{tikzpicture}
\foreach \x in {0,1,2}
\foreach \y in {0,1,2}{
\node (a)[vertexs] at (\y,0) {};
\node (b)[vertexs] at (\x,1) {};
\draw (a) -- (b);
}
% \foreach \x in {0,1,2}{
% \draw (\x,0) circle (2pt);
% \draw (\x,1) circle (2pt);
% }
\end{tikzpicture}
\end{document}