MA0301/exercise10/diagrams/ex5_b.tex

43 lines
847 B
TeX
Raw Normal View History

2021-05-03 01:06:04 +02:00
\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{d}{a}
\arrow{a}{b}
\arrow{b}{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}
\end{tikzpicture}