The following tex produces the image below. I want the arrow in the centre of the lines. Is it possible to modify the given tex to fix it? Thanks
\begin{tikzpicture}[grow=right,scale=1,solid node/.style={circle,draw,inner sep=1.5,fill=black}]
\draw[{<[scale=2.5,
length=3,
width=3]}-] (0.7,0.7)node[solid node,fill=green]{} -- (1.5,1.5) node[solid node]{};
\draw[{<[scale=2.5,
length=3,
width=3]}-] (1.5,1.5)node[solid node]{} -- (2.5,2)node[solid node]{};
\draw[{<[scale=2.5,
length=3,
width=3]}-] (2.5,2)node[solid node]{} -- (3.4,2.2)node[solid node,fill=red]{};
\end{tikzpicture}
\documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{arrows.meta,decorations.markings} \begin{document} \begin{tikzpicture}[solid node/.style={circle,draw,inner sep=1.5,fill=black}, -<-/.style={postaction=decorate,decoration={markings,mark=at position 0.5 with {\arrow{<[scale=2.5,length=3,width=3]}}}}] \draw (0.7,0.7) node[solid node,fill=green] (n1) {} (1.5,1.5) node[solid node] (n2){} (2.5,2)node[solid node] (n3) {} (3.4,2.2)node[solid node,fill=red] (n4){} (n1) edge[-<-] (n2) (n2) edge[-<-] (n3) (n3) edge[-<-] (n4); \end{tikzpicture} \end{document}