added automatons to tikz graphs cheat sheet

main
Isabell Pflug 2 years ago
parent 6b6ba8c96f
commit f5b6f61609

@ -12,8 +12,8 @@
\setlength{\headheight}{15.2pt}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[R]{cheat sheet}
\fancyhead[L]{tikz graphs}
\fancyhead[R]{\leftmark}
\fancyhead[L]{Tikz Graphs}
\fancyfoot[C]{\thepage}
%
@ -78,7 +78,7 @@
% maketitle
%
\title{tikz graphs}
\title{Tikz Graphs}
\subject{cheat sheet}
\author{Isabell Pflug}
\date{\today}
@ -210,14 +210,14 @@
\pagebreak
\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, accepting] (q_1) [above right=of q_0] {$q_1$};
\node[state] (q_2) [below right=of q_0] {$q_2$};
\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)
(q_1) edge [loop above] node {0} ()
(q_2) edge [loop below] node {1} ()

Loading…
Cancel
Save