%!TEX root = main.tex
%Example: $w=\textcolor{blue}{1011101100}$
\begin{tikzpicture}[xscale=1.1,yscale=0.52,>=latex]%[scale=1.1,%line join=bevel,>=latex]
\def\posetedgecolor{blue}
\node(1) at (0,0) {\circled{$1$}}; %{\circled{$a$}}; 
\node(2) at (1,-1) {$2$}; %{\circled{$b$}}; 
\node(3) at (2,0) {\circled{$3$}}; %{\circled{$c$}}; 
\node(4) at (3,1) {$4$}; %{\circled{$d$}}; 
\node(5) at (4,2) {$5$}; %{\circled{$e$}};  
\node(6) at (5,1) {$6$}; %{\circled{$f$}}; 
\node(7) at (6,2) {\circled{$7$}}; %{\circled{$g$}};
\node(8) at (7,3) {$8$}; % {\circled{$h$}}; 
\node(9) at (8,2) {\circled{$9$}}; %{\circled{$i$}}; 
\node(10) at (9,1)  {$10$}; %{\circled{$j$}};

\node[\posetedgecolor] at (-0.9,0) {$\underline{1}$};
\draw[->] (2) -- (1) node[\posetedgecolor,pos=0.7,below] {\small $0$}; 
\draw[->]  (2) -- (3) node[\posetedgecolor,pos=0.2,above] {\small $1$}; ; 
\draw[->] (3) -- (4) node[\posetedgecolor,pos=0.2,above] {\small $1$}; ; 
\draw[->] (4) -- (5) node[\posetedgecolor,pos=0.2,above] {\small $1$}; ;
\draw[->] (6) -- (5) node[\posetedgecolor,pos=0.7,below] {\small $0$}; ; 
\draw[->] (6) -- (7) node[\posetedgecolor,pos=0.2,above] {\small $1$}; ; 
\draw[->] (7) -- (8) node[\posetedgecolor,pos=0.2,above] {\small $1$}; ; 
\draw[->] (9) -- (8) node[\posetedgecolor,pos=0.7,below] {\small $0$}; ; 
\draw[->] (10) -- (9)node[\posetedgecolor,pos=0.7,below] {\small $0$}; ;
\end{tikzpicture}