added automatons to tikz graphs cheat sheet

main
Isabell Pflug 3 years ago
parent 6b6ba8c96f
commit f5b6f61609

@ -12,8 +12,8 @@
\setlength{\headheight}{15.2pt} \setlength{\headheight}{15.2pt}
\pagestyle{fancy} \pagestyle{fancy}
\fancyhf{} \fancyhf{}
\fancyhead[R]{cheat sheet} \fancyhead[R]{\leftmark}
\fancyhead[L]{tikz graphs} \fancyhead[L]{Tikz Graphs}
\fancyfoot[C]{\thepage} \fancyfoot[C]{\thepage}
% %
@ -78,7 +78,7 @@
% maketitle % maketitle
% %
\title{tikz graphs} \title{Tikz Graphs}
\subject{cheat sheet} \subject{cheat sheet}
\author{Isabell Pflug} \author{Isabell Pflug}
\date{\today} \date{\today}
@ -210,14 +210,14 @@
\pagebreak \pagebreak
\section{Automatons} \section{Automatons}
\begin{tikzpicture}[every initial by arrow/.style={->>}] \begin{tikzpicture}[every initial by arrow/.style={->>,thick}]
\node[state,initial] (q_0) {$q_0$}; \node[state,initial] (q_0) {$q_0$};
\node[state, accepting] (q_1) [above right=of q_0] {$q_1$}; \node[state, accepting] (q_1) [above right=of q_0] {$q_1$};
\node[state] (q_2) [below right=of q_0] {$q_2$}; \node[state] (q_2) [below right=of q_0] {$q_2$};
\node[state, accepting] (q_3) [right=of q_2] {$q_3$}; \node[state, accepting] (q_3) [right=of q_2] {$q_3$};
\path[->] (q_0) edge node [above left] {0} (q_1) \path[->, thick] (q_0) edge node [above left] {0} (q_1)
edge node [below left] {1} (q_2) edge node [below left] {1} (q_2)
(q_1) edge [loop above] node {0} () (q_1) edge [loop above] node {0} ()
(q_2) edge [loop below] node {1} () (q_2) edge [loop below] node {1} ()

Loading…
Cancel
Save