path graph.tex (469B)
1 \begin{tikzpicture}[baseline=(n2.south), c/.style={regular polygon,regular polygon sides=4,minimum width=1.5mm,inner sep=0mm}] 2 \node[c,fill=Dark2-A] (n1) at (0, 0) {}; 3 \node[c,fill=Dark2-A] (n2) at (0.25, 0) {}; 4 \node[c,fill=Dark2-B] (n3) at (0.5, 0) {}; 5 \node[c,fill=Dark2-C] (n4) at (0.75, 0) {}; 6 \draw (n1) -- (n2) -- (n3) -- (n4); 7 \node[anchor=east,left=-1mm of n1.west] {\(\ldots\)}; 8 \node[anchor=west,right=-1mm of n4.east] {\(\ldots\)}; 9 \end{tikzpicture}