Standalone example:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}
\draw[black, very thick] plot[smooth] coordinates {(4,1) (2,2) (1,3) (2,4) (4,3)};
\node[fill=green!60, inner sep=3pt, circle, draw] at (4, 1) {};
\node[fill=green!60, inner sep=3pt, circle, draw] at (2, 2) {};
\node[fill=green!60, inner sep=3pt, circle, draw] at (1, 3) {};
\node[fill=green!60, inner sep=3pt, circle, draw] at (2, 4) {};
\node[fill=green!60, inner sep=3pt, circle, draw] at (4, 3) {};
\end{tikzpicture}
\end{document}
Result:
What I want:
I like to have arrows before each node point at the node on all nodes in the path.
How do I achieve this?
Best Answer
Based on my own answer to this question, I got the following result:
Positioning of the arrows is done automatically according to the list of points that appears at the beginning of the code. Here we go:
EDIT
OBS: I changed the style of the arrow just to be more like the provided example.
Well, just to complete my answer, now I will give a little more detail. Tripplet said there was a space between the arrow and cĂculo and he was right, as can be seen here:
The distance between the circle and the arrow was given by the contour line, which was not being drawn. This is easily fixed as you can see:
And the result is
But, if desired the arrow gets further into the circle, one can make the following changes:
And you will get: