I would like to draw an edge between two nodes in tikz, but this edge should be both "dotted" and the dots must be a distinct shape (not dots or dashes). Currently, I am aiming at getting the shape of dots to be a start (*). However, a nice solution would be one that is generic enough that I can define any reasonable shape (say, a triangle, star, hexagon) and get the edge in dotted style.
EDIT: thanks for the comments, I managed to get some stuff working. However, I am still having a bit of issues. Now I have the MWE below:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{subcaption}
\usetikzlibrary{arrows}
\usetikzlibrary{snakes}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{shapes}
\usetikzlibrary{decorations.shapes}
\usetikzlibrary{positioning}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}[->,=>stealth']
\node[draw,circle,fill=black] (a) at (0,-0.5) {};
\node[draw,circle,fill=black] (b) at (3.5,-3) {};
\path[very thick]
(a) edge[decorate,decoration={crosses, shape evenly spread=6, shape size={.15cm}}] node {} (b)
;
\end{tikzpicture}
\end{document}
The problem is that the shape evenly spread or shape sep options do not seem to work for me.
Does anyone else have the same problem? It doesn't matter how much I change the parameters for either one of them, the figure it generates is always the same.
