I'm trying to draw an automata in LaTeX with TikZ, but I don't know how to make a long transition between two states. I need a sized label to be placed on it.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,positioning}
\begin{document}
\begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto]
\node[state,initial] (s_0) {Start 1};
\node[state] (s_1) [right=of s_0] {Start 2};
\node[state] (s_2) [right=of s_1] {Start 3};
\path[->]
(s_0) edge [bend left] node {Path not long enough for text} (s_1);
\end{tikzpicture}
\end{document}
Gives this result:
Anyone here who could help me?
\node[state, right=5cm of s_0] (s_1) {Start 2};
and/or reduce the width of the node on the path:\path[->] (s_0) edge [bend left] node[align=center, text width=5cm] {Path not long enough for text} (s_1);