MA0301/exercise10/diagrams/ex5_a.tex

44 lines
862 B
TeX

\newcommand{\point}[3]{
\node [label=#3:$#1$] (#1) at #2 {};
}
\newcommand{\arrow}[2]{\path [-{Latex[scale=1]}] (#1) edge (#2);}
\begin{tikzpicture}
\begin{scope}[every node/.style={fill=black, shape=circle, inner sep=1pt}]
\point{a}{(0,2)}{above}
\point{d}{(0,1)}{left}
\point{h}{(0,0)}{below}
\point{b}{(2,2)}{above}
\point{e}{(1,1)}{above left}
\point{i}{(1,0)}{below}
\point{f}{(3,1)}{right}
\point{j}{(3,0)}{below}
\point{c}{(4,2)}{above}
\point{g}{(4,1)}{right}
\point{k}{(4,0)}{below}
\end{scope}
\arrow{a}{d}
\arrow{d}{h}
\arrow{h}{i}
\arrow{i}{j}
\arrow{j}{k}
\arrow{k}{g}
\arrow{g}{c}
\arrow{c}{b}
\arrow{b}{g}
\arrow{g}{j}
\arrow{j}{f}
\arrow{f}{b}
\arrow{b}{e}
\arrow{e}{f}
\arrow{f}{i}
\arrow{i}{e}
\arrow{e}{d}
\arrow{d}{b}
\arrow{b}{a}
\end{tikzpicture}