przepisano wszystkie obrazki na tikz

This commit is contained in:
Kacper Donat 2018-01-29 19:16:29 +01:00
parent 4e4fdbebcb
commit be4c3652a9
6 changed files with 52 additions and 4393 deletions

View File

@ -54,7 +54,7 @@ który nie jest połączony z żadnym innym.
\begin{figure}[H]
\centering
\includegraphics{niehamiltonowski}
\input{gfx/hamilton.tex}
\caption{Transformacja w graf niehamiltonowski}
\end{figure}
@ -137,7 +137,7 @@ $\deg f(u) \geq \delta$. Można to zaobserwować na rysunku poniżej.
\begin{figure}[H]
\centering
\includegraphics{./gfx/mapowanie}
\input{gfx/mapowanie.tex}
\caption{Powiązane wierzchołki mają ten sam kolor w obu grafach.}
\end{figure}

26
gfx/hamilton.tex Normal file
View File

@ -0,0 +1,26 @@
\begin{tikzpicture}[node distance=4cm, auto]
\def\V{(0,0),(1,-1),(-1,-1.5),(-1,.5),(-2.5,1),(1,1.5),(.5,3),(-1,2.5),(-2.5,2.5)}
\def\E{1/2,1/3,3/4,1/4,1/6,2/6,3/2,3/5,5/4/,5/9,9/8,8/7,6/7,4/9,4/7,1/8}
\def\C{5/4,4/3,3/2,2/1,1/6,6/7,7/8,8/9,9/5}
\def\G{%
\foreach \pos[count=\v] in \V \node[vertex] (v-\v) at \pos {};%
\foreach \u/\v in \E \draw (v-\u) -- (v-\v);%
}%
\node[label={below:Graf $G$}] (G) {
\begin{tikzpicture}
\G
\foreach \u/\v in \C \draw[thick, red] (v-\u) -- (v-\v);
\end{tikzpicture}
};
\node[label={below:Graf $G_1$}, right of=G, anchor=west] (H) {
\begin{tikzpicture}
\G
\node[vertex, label={below:$v_{101}$}] at (-2,-.5) {};
\end{tikzpicture}
};
\draw[->, thick] (G) -- (H);
\end{tikzpicture}

24
gfx/mapowanie.tex Normal file
View File

@ -0,0 +1,24 @@
\begin{tikzpicture}[node distance=4cm, auto]
\node[label={left:Graf $G$}] (G) {
\begin{tikzpicture}
\def\V{(0,0)/red,(1,-0.5)/teal,(0.5,-2)/green,(-1,-1)/blue}
\def\E{1/2,2/3,3/4,4/1}
\foreach \pos/\color[count=\v] in \V \node[vertex, draw=\color, very thick] (v-\v) at \pos {\v};
\foreach \u/\v in \E \draw (v-\u) -- (v-\v);
\end{tikzpicture}
};
\node[right of=G, anchor=west, label={left:Graf $H$}] (H) {
\begin{tikzpicture}
\def\V{(-1.5,1)/teal,(-.5,2)/green,(0,-.5)/red,(1,.5)/blue}
\def\VV{(-1,-1.5),(2,-1),(-1.5,3),(2,1.5)}
\def\E{1/2,1/3,1/4,2/3,2/4,3/4,1/5,3/5,5/6,6/8,8/2,4/8,3/6,1/7,2/7,7/8}
\foreach \pos/\color[count=\v] in \V \node[vertex, draw=\color, very thick] (v-\v) at \pos {\v};
\foreach \pos[count=\v from 5] in \VV \node[vertex, very thick] (v-\v) at \pos {\v};
\foreach \u/\v in \E \draw (v-\u) -- (v-\v);
\end{tikzpicture}
};
\end{tikzpicture}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.