MA0301/exercise11/diagrams/ex2_2.tex

27 lines
576 B
TeX
Raw Normal View History

2021-05-03 01:06:04 +02:00
\newcommand{\point}[3]{
\node [label=#3:$#1$] (#1) at #2 {};
}
\begin{tikzpicture}[]
\begin{scope}[every node/.style={fill=black, shape=circle, inner sep=1pt}]
\point{a}{(0,1)}{left}
\point{b}{(1,2)}{above}
\point{c}{(2,1)}{above right}
\point{d}{(1,0)}{below}
\point{e}{(4,1)}{above left}
\point{f}{(5,2)}{above}
\point{g}{(6,1)}{right}
\point{h}{(5,0)}{below}
\end{scope}
\draw (a) -- (b);
\draw (e) -- (f);
\draw (c) -- (d);
\draw (h) -- (e);
\draw (b) -- (c);
\draw (f) -- (g);
\draw (c) -- (e);
\end{tikzpicture}