0

I want to use the tikz passage to draw an infinite graph like the following figureenter image description here

But I cannot find anything like it.

2
  • Welcome to TeX.SX. Questions about how to draw specific graphics that just post an image of the desired result are really not reasonable questions to ask on the site. Please post a minimal compilable document showing that you've tried to produce the image and then people will be happy to help you with any specific problems you may have. See minimal working example (MWE) for what needs to go into such a document. Please show us what you've tried!
    – cfr
    Feb 22 '15 at 21:48
  • Maybe start simple: tex.stackexchange.com/questions/159127/…. Take a look at the TiKZ example site.
    – cfr
    Feb 22 '15 at 21:52
3

One possible solution with tikz package

enter image description here

Code

\documentclass[border=1cm]{standalone}
\usepackage{tikz,amsmath}
\usetikzlibrary{positioning,arrows,calc}
\begin{document}
\begin{tikzpicture}
\draw[<->,>=latex'] (0,1)--(9,1);
\draw[<->,>=latex'] (0,0)--(9,0);
\draw (4.5,3) node[circle,fill, inner sep=2pt](v){}node[above=1pt]{$v$};
\draw (5,-2) node[circle, draw, fill=white,inner sep=2pt](vv){};
\foreach \i in {1,2,...,8}{
\draw (\i,1) node [circle,fill, inner sep=2pt] {};
\draw (\i,0) node [circle,fill, inner sep=2pt] {};
\draw (\i,1)--(\i,0);
}
\foreach \i/\j in {0/1.2,1/1,2/1,3/1,4/1}{
\draw (v) edge[out=180,in=90] (\i,\j);
}
\foreach\i/\j in {5/1,6/1,7/1,8/1,9/1.3}{
\draw (v) edge[out=0,in=90] (\i,\j);
}
\draw (0.7,2) node(){$\mathbf\cdots$};
\draw (8.1,2) node(){$\mathbf\cdots$};
\begin{scope}[shift={(0.5,0.5)}]
\draw[<->,>={open triangle 45},dashed] (0,1)--(9,1);
\draw[<->,>={open triangle 45},dashed] (0,0)--(9,0);

\foreach \i/\j in {0/-1,1/0,2/0,3/0,4/0}{
\draw[dashed] (vv) edge[out=180,in=-90] (\i,\j);
}

\foreach\i/\j in {5/0,6/0,7/0,8/0,9/-1}{
\draw[dashed] (vv) edge[out=0,in=-90] (\i,\j);
}
\foreach \i in {1,2,...,8}{
\draw[dashed] (\i,1)--(\i,0);
\draw (\i,1) node [circle, draw, fill=white,inner sep=2pt] {};
\draw (\i,0) node [circle, draw, fill=white,inner sep=2pt] {};
}
\draw (0.7,-1.5) node(){$\mathbf\cdots$};
\draw (8.1,-1.5) node(){$\mathbf\cdots$};
\end{scope}
\end{tikzpicture}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.