MA0301/exam_template_graphics/graphics/undirectedGraph.tex

31 lines
741 B
TeX
Raw Normal View History

2021-05-10 22:12:44 +02:00
\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}
2021-05-11 22:21:15 +02:00
\begin{scope}[every draw/.style={}]
\draw (A) -- (B);
2021-05-10 22:12:44 +02:00
\draw (A) -- (C);
2021-05-11 22:21:15 +02:00
\draw (A) -- (H);
\draw (B) -- (C);
\draw (B) -- (F);
2021-05-10 22:12:44 +02:00
\draw (C) -- (D);
2021-05-17 18:39:28 +02:00
\draw (C) -- (H);
2021-05-10 22:12:44 +02:00
\draw (D) -- (E);
2021-05-11 22:21:15 +02:00
\draw (D) -- (F);
2021-05-10 22:31:46 +02:00
\draw (D) -- (G);
2021-05-11 22:21:15 +02:00
\draw (F) -- (G);
\end{scope}
2021-05-10 22:12:44 +02:00
\end{tikzpicture}