27 lines
576 B
TeX
27 lines
576 B
TeX
|
\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}
|