MA0301/exam_template_graphics/graphics/directedFromMatrix.tex

53 lines
2.1 KiB
TeX

\newcommand{\arrow}[2]{\path [-{Latex[scale=1]}] (#1) edge (#2);}
\begin{tikzpicture}
\begin{scope}[every node/.style={shape=circle, fill=white, draw, inner sep=2pt}]
\node (A) at (0,4.0) {$A$};
\node (B) at (-2.82843,2.82843) {$B$};
\node (C) at (-4.0,0.0) {$C$};
\node (D) at (-2.82843,-2.82843) {$D$};
\node (E) at (-0.0,-4.0) {$E$};
\node (F) at (2.82843,-2.82843) {$F$};
\node (G) at (4.0,-0.0) {$G$};
\node (H) at (2.82843,2.82843) {$H$};
\end{scope}
\begin{scope}[every draw/.style={}]
\draw [-{Latex[scale=1]}] (A) to [out=105.0,in=75.0,looseness=8] (A);
\draw [-{Latex[scale=1]}, bend left=8] (A) to (C);
\draw [-{Latex[scale=1]}] (A) to (E);
\draw [-{Latex[scale=1]}, bend left=8] (A) to (G);
\draw [-{Latex[scale=1]}] (B) to (A);
\draw [-{Latex[scale=1]}] (B) to (C);
\draw [-{Latex[scale=1]}] (B) to (F);
\draw [-{Latex[scale=1]}] (B) to (H);
\draw [-{Latex[scale=1]}, bend left=8] (C) to (A);
\draw [-{Latex[scale=1]}, bend left=8] (C) to (D);
\draw [-{Latex[scale=1]}] (C) to (F);
\draw [-{Latex[scale=1]}] (C) to (H);
\draw [-{Latex[scale=1]}] (D) to (A);
\draw [-{Latex[scale=1]}, bend left=8] (D) to (C);
\draw [-{Latex[scale=1]}] (D) to [out=240.0,in=210.0,looseness=8] (D);
\draw [-{Latex[scale=1]}, bend left=8] (D) to (F);
\draw [-{Latex[scale=1]}, bend left=8] (D) to (H);
\draw [-{Latex[scale=1]}] (E) to (B);
\draw [-{Latex[scale=1]}] (E) to [out=285.0,in=255.0,looseness=8] (E);
\draw [-{Latex[scale=1]}] (E) to (G);
\draw [-{Latex[scale=1]}] (E) to (H);
\draw [-{Latex[scale=1]}] (F) to (A);
\draw [-{Latex[scale=1]}, bend left=8] (F) to (D);
\draw [-{Latex[scale=1]}] (F) to [out=330.0,in=300.0,looseness=8] (F);
\draw [-{Latex[scale=1]}, bend left=8] (F) to (H);
\draw [-{Latex[scale=1]}, bend left=8] (G) to (A);
\draw [-{Latex[scale=1]}] (G) to (D);
\draw [-{Latex[scale=1]}] (G) to (F);
\draw [-{Latex[scale=1]}] (G) to (H);
\draw [-{Latex[scale=1]}] (H) to (A);
\draw [-{Latex[scale=1]}, bend left=8] (H) to (D);
\draw [-{Latex[scale=1]}, bend left=8] (H) to (F);
\draw [-{Latex[scale=1]}] (H) to [out=420.0,in=390.0,looseness=8] (H);
\end{scope}
\end{tikzpicture}