2012-08-09 07:04:38 +02:00
|
|
|
\documentclass{article}
|
|
|
|
\usepackage[pdftex,active,tightpage]{preview}
|
|
|
|
\setlength\PreviewBorder{2mm}
|
|
|
|
\usepackage{tikz}
|
2015-10-14 14:25:34 +02:00
|
|
|
\usetikzlibrary{shapes, calc}
|
2012-08-09 07:04:38 +02:00
|
|
|
\tikzstyle{vertex}=[draw,fill=black!15,circle,minimum size=20pt,inner sep=0pt]
|
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
\begin{preview}
|
|
|
|
\begin{tikzpicture}[font=\sffamily,thick,level/.style={sibling distance=50mm/#1}]
|
|
|
|
\node[vertex] {S}
|
2015-10-14 14:25:34 +02:00
|
|
|
child {
|
2012-08-09 07:04:38 +02:00
|
|
|
node[vertex] {A}
|
2015-10-14 14:25:34 +02:00
|
|
|
child {
|
|
|
|
node[vertex] {a}
|
2012-08-09 07:04:38 +02:00
|
|
|
}
|
2015-10-14 14:25:34 +02:00
|
|
|
child {
|
|
|
|
node[vertex] {A}
|
2012-08-09 07:04:38 +02:00
|
|
|
child { node[vertex] {a} }
|
2015-10-14 14:25:34 +02:00
|
|
|
child {
|
2012-08-09 07:04:38 +02:00
|
|
|
node[vertex] {A}
|
|
|
|
child { node[vertex] {$\varepsilon$} }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} child {
|
|
|
|
node[vertex] {B}
|
|
|
|
child { node[vertex] {b} }
|
|
|
|
}
|
|
|
|
;
|
|
|
|
\end{tikzpicture}
|
|
|
|
\end{preview}
|
|
|
|
\end{document}
|