I used the following latex code to draw this digraph.
\documentclass[12pt]{article}
\usepackage{pgf, tikz}
\usetikzlibrary{arrows, automata}
\begin{document}
\begin{tikzpicture}
[> = stealth,
shorten > = 1pt,
auto,
node distance = 2cm,
thick ]
\tikzstyle{every state}=[
draw = black,
thick,
fill = white,
minimum size = 2mm]
\node[state] (v1) {$v_1$};
\node[state] (v2) [right of=v1] {$v_2$};
\path[->] (v2) edge node {$1$} (v1);
\node[state] (v3) [right of=v2] {$v_3$};
\path[->] (v3) edge node {$1$} (v2);
\node[state] (v4) [right of=v3] {$v_4$};
\path[->] (v4) edge node {$1$} (v3);
\node[state] (v5) [right of=v4] {$v_5$};
\path[->] (v5) edge node {$1$} (v4);
\node[state] (v6) [right of=v5] {$v_6$};
\path[->] (v6) edge node {$1$} (v5);
\path (v1) edge [loop left] node {$u_1$} (v1);
\path[->] (v1) edge[bend left=30] node {$u_2$} (v2);
\path[->] (v1) edge[bend left=40] node {$u_3$} (v3);
\path[->] (v1) edge[bend left=50] node {$u_4$} (v4);
\path[->] (v1) edge[bend left=55] node {$u_5$} (v5);
\path[->] (v1) edge[bend left=60] node {$u_6$} (v6);
\end{tikzpicture}
\end{document}
I would greatly appreciate to improve my latex code such that the output of code be similar to the mentioned digraph.
In fact my problems are the size of circles that want to be smaller and the positions of $u_i$
’s and the loop for the node v_1
.
Thanks for any suggestion.