2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-28 23:37:57 +02:00
LaTeX-examples/presentations/Diskrete-Mathematik/LaTeX/inzidenz/k-3-3.tex

20 lines
552 B
TeX
Raw Normal View History

2013-04-18 08:57:48 +02:00
\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);
}
\draw[green,ultra thick] (1,1) -- (0,0);
\node (b)[vertexs,red] at (1,1) {};
\node (b)[vertexs,red] at (0,0) {};
\end{tikzpicture}
\end{document}