19 lines
406 B
TeX
19 lines
406 B
TeX
\begin{tikzpicture}[thick]
|
|
\input{src/tikz/tsp}
|
|
|
|
\tspnodes
|
|
|
|
\coordinate (s0) at (p0);
|
|
\foreach [count=\i] \o in {1,2,3,5,4,6,7,8,9} {
|
|
\coordinate (s\i) at (p\o);
|
|
}
|
|
|
|
\foreach \i in {0,...,\last} {
|
|
\node[tsp/node] at (p\i) {};
|
|
}
|
|
|
|
\begin{scope}[on background layer]
|
|
\draw[tsp/edge,foreach/.style={insert path=--(s#1)}] (p0) [foreach/.list={1,...,\last}] -- cycle;
|
|
\end{scope}
|
|
\end{tikzpicture}
|