I have the following graph:
\begin{figure} \begin{tikzpicture} \node[shape=circle,draw=black,minimum size=1cm] (0) at (0,0) {$0$}; \node[shape=circle,draw=black,minimum size=1cm] (11) at (-1,0) {$-1$}; \node[shape=circle,draw=black,minimum size=1cm] (12) at (-2,0) {$-2$}; \node[shape=circle,draw=black,minimum size=1cm] (13) at (-3,0) {$-3$}; \node[shape=circle,draw=black,minimum size=1cm] (14) at (-4,0) {$-4$}; \node[shape=circle,draw=black,minimum size=1cm] (1) at (1,0) {$1$}; \node[shape=circle,draw=black,minimum size=1cm] (2) at (2,0) {$2$}; \node[shape=circle,draw=black,minimum size=1cm] (3) at (3,0) {$3$}; \node[shape=circle,draw=black,minimum size=1cm] (4) at (4,0) {$4$}; \draw (0) -- (1); \draw (2) -- (1); \draw (3) -- (2); \draw (4) -- (3); \draw (0) --(11); \draw (11) -- (12); \draw (12) -- (13); \draw (13) --(14); \end{tikzpicture} \end{figure} In this picture, the edges between the nodes are not visible. How to make the edges visible?
Secondly I want the nodes to continue in both direction, i.e. I want the graph to be an infinite graph on both sides. Can someone please help me on how to make the graph infinite?
I would be grateful if someone could fix this.
