2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/tikz/graph-v6-e8/graph-v6-e8.tex
Martin Thoma 7740f0147f Remove trailing spaces
The commands

find . -type f -name '*.md' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

and

find . -type f -name '*.tex' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

were used to do so.
2015-10-14 14:25:34 +02:00

21 lines
695 B
TeX

\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{ifthen}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\tikzstyle{vertex}=[draw,black,fill=blue,circle,minimum size=10pt,inner sep=0pt]
\tikzstyle{edge}=[very thick]
\begin{tikzpicture}
\node (a)[vertex,fill=lime] at (1,0) {};
\node (b)[vertex,fill=red] at (0,1) {};
\node (c)[vertex,fill=lime] at (1,2) {};
\node (d)[vertex,fill=blue] at (2,2) {};
\node (e)[vertex,fill=red] at (3,1) {};
\node (f)[vertex,fill=blue] at (2,0) {};
\draw[edge] (a) -- (b) -- (c) -- (d) -- (e) -- (f) -- (a) -- cycle;
\draw[edge] (b) -- (f);
\draw[edge] (b) -- (d);
\end{tikzpicture}
\end{document}