two questions: first one: 1-how do i make the line going from q2 to q6 go around q5 and not throw q4 and q5? i tried [Bend left = 120] and other numbers but i won't go around it what matter i put as a number.
the second one is: 2- how do i make the arrow from q1 to q4 two separate arrows and not allowing them to share the arrow?
This is my code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,positioning}
\begin{document}
\begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto]
\node[state,initial] (q_0) {$q_0$};
\node[state,accepting] (q_1) [ right=of q_0] {$q_1$};
\node[state] (q_2) [right=of q_1] {$q_2$};
\node[state] (q_3) [ below=of q_0] {$q_3$};
\node[state] (q_4) [ below=of q_1] {$q_4$};
\node[state] (q_5) [ below=of q_2] {$q_5$};
\node[state] (q_6) [ below=of q_3] {$q_6$};
\path[->]
(q_0) edge node {a} (q_1)
edge node {c} (q_3)
edge node {b} (q_4)
(q_1) edge node {c} (q_2)
edge node {a} (q_4)
edge [loop above] node {b} ()
(q_2)edge node {a} (q_4)
edge node {a} (q_4)
edge [bend left] node {b} (q_6)
edge [loop above] node {c} ()
(q_3) edge node {b} (q_6)
edge node {a} (q_1)
edge [loop left] node {c} ()
(q_4) edge node {c} (q_5)
edge node {a} (q_1)
edge [loop left] node {b} ()
(q_5) edge node {b} (q_6)
edge node {a} (q_2)
edge [loop right] node {c} ()
(q_6)
edge [loop left] node {a,b,c} ();
\end{tikzpicture}
\end{document}