Hi i took this code and made it sute my styles but i can not get the line end of net node end before the circle it ends inside the circle. how can i make it stop at the edge of the circle?
here is my code:
\tikzset{
net node/.style = {circle, draw, minimum width=0.8cm, inner sep=0pt, outer sep=0pt},
net connect/.style = {line width=1pt, draw=black},
net thick connect/.style = {net connect, line width=1.7pt},
}
\begin{tikzpicture}
\path [net thick connect] (0.8,0) -- (5.2,0);
\foreach \i/\j in {2/-1,4/-1,1/1,3/1,5/1} \path [net connect] (\i,0) -- (\i,\j) node [net node] {\i};
\end{tikzpicture}


\iand I used an\ifoddconditional to give a possitive or a negative nalue to\ycoordinate [Want odd nums above and even nums below.] – koleygr Sep 22 '17 at 16:16