diff options
author | Andreas Müller <andreas.mueller@ost.ch> | 2021-02-22 16:37:34 +0100 |
---|---|---|
committer | Andreas Müller <andreas.mueller@ost.ch> | 2021-02-22 16:37:34 +0100 |
commit | b8f090eb8c7b621a98fc58ce50d0af1fe246f684 (patch) | |
tree | d278e2df84b4336540159a0ae83d42f945fb48be /buch/chapters/70-graphen/images | |
parent | typos (diff) | |
download | SeminarMatrizen-b8f090eb8c7b621a98fc58ce50d0af1fe246f684.tar.gz SeminarMatrizen-b8f090eb8c7b621a98fc58ce50d0af1fe246f684.zip |
add new graph
Diffstat (limited to 'buch/chapters/70-graphen/images')
-rw-r--r-- | buch/chapters/70-graphen/images/Makefile | 5 | ||||
-rw-r--r-- | buch/chapters/70-graphen/images/adjazenzu.pdf | bin | 0 -> 19952 bytes | |||
-rw-r--r-- | buch/chapters/70-graphen/images/adjazenzu.tex | 87 |
3 files changed, 91 insertions, 1 deletions
diff --git a/buch/chapters/70-graphen/images/Makefile b/buch/chapters/70-graphen/images/Makefile index 2199ddc..9e61446 100644 --- a/buch/chapters/70-graphen/images/Makefile +++ b/buch/chapters/70-graphen/images/Makefile @@ -3,8 +3,11 @@ # # (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule # -all: peterson.pdf +all: peterson.pdf adjazenzu.pdf peterson.pdf: peterson.tex pdflatex peterson.tex +adjazenzu.pdf: adjazenzu.tex + pdflatex adjazenzu.tex + diff --git a/buch/chapters/70-graphen/images/adjazenzu.pdf b/buch/chapters/70-graphen/images/adjazenzu.pdf Binary files differnew file mode 100644 index 0000000..c24335a --- /dev/null +++ b/buch/chapters/70-graphen/images/adjazenzu.pdf diff --git a/buch/chapters/70-graphen/images/adjazenzu.tex b/buch/chapters/70-graphen/images/adjazenzu.tex new file mode 100644 index 0000000..29e094f --- /dev/null +++ b/buch/chapters/70-graphen/images/adjazenzu.tex @@ -0,0 +1,87 @@ +% +% adjazenzu.tex -- Adjazenz-Matrix für einen ungerichten Graphen +% +% (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule +% +\documentclass[tikz]{standalone} +\usepackage{amsmath} +\usepackage{times} +\usepackage{txfonts} +\usepackage{pgfplots} +\usepackage{csvsimple} +\usetikzlibrary{arrows,intersections,math,calc} +\begin{document} +\def\skala{1} +\begin{tikzpicture}[>=latex,thick,scale=\skala] + +\def\r{1.8} + +\begin{scope} +\coordinate (A) at ({\r*cos(0*72)},{\r*sin(0*72)}); +\coordinate (B) at ({\r*cos(1*72)},{\r*sin(1*72)}); +\coordinate (C) at ({\r*cos(2*72)},{\r*sin(2*72)}); +\coordinate (D) at ({\r*cos(3*72)},{\r*sin(3*72)}); +\coordinate (E) at ({\r*cos(4*72)},{\r*sin(4*72)}); + +\draw[shorten >= 0.2cm,shorten <= 0.2cm] (A) -- (C); +\draw[color=white,line width=5pt] (B) -- (D); +\draw[shorten >= 0.2cm,shorten <= 0.2cm] (B) -- (D); + +\draw[shorten >= 0.2cm,shorten <= 0.2cm] (A) -- (B); +\draw[shorten >= 0.2cm,shorten <= 0.2cm] (B) -- (C); +\draw[shorten >= 0.2cm,shorten <= 0.2cm] (C) -- (D); +\draw[shorten >= 0.2cm,shorten <= 0.2cm] (D) -- (E); +\draw[shorten >= 0.2cm,shorten <= 0.2cm] (E) -- (A); + +\draw (A) circle[radius=0.2]; +\draw (B) circle[radius=0.2]; +\draw (C) circle[radius=0.2]; +\draw (D) circle[radius=0.2]; +\draw (E) circle[radius=0.2]; + +\node at (A) {$1$}; +\node at (B) {$2$}; +\node at (C) {$3$}; +\node at (D) {$4$}; +\node at (E) {$5$}; +\node at (0,0) {$G$}; + +\node at ($0.5*(A)+0.5*(B)$) [above right] {$1$}; +\node at ($0.5*(B)+0.5*(C)$) [above left] {$2$}; +\node at ($0.5*(C)+0.5*(D)$) [left] {$3$}; +\node at ($0.5*(D)+0.5*(E)$) [below] {$4$}; +\node at ($0.5*(E)+0.5*(A)$) [below right] {$5$}; +\node at ($0.6*(A)+0.4*(C)$) [above] {$6$}; +\node at ($0.4*(B)+0.6*(D)$) [left] {$7$}; + +\end{scope} + +\begin{scope}[xshift=3cm,yshift=-1.1cm] +\node at (0,0) [right] {$\displaystyle +B(G) += +\begin{pmatrix} +1&0&0&0&1&0&0\\ +1&1&0&0&0&1&0\\ +0&1&1&0&0&0&1\\ +0&0&1&1&0&1&0\\ +0&0&0&1&1&0&1 +\end{pmatrix}$}; +\end{scope} + +\begin{scope}[xshift=3cm,yshift=1.1cm] +\node at (0,0) [right] {$\displaystyle +A(G) += +\begin{pmatrix} +0&1&1&0&1\\ +1&0&1&1&0\\ +1&1&0&1&0\\ +0&1&1&0&1\\ +1&0&0&1&0 +\end{pmatrix}$}; +\end{scope} + +\end{tikzpicture} +\end{document} + |