TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Would you please help me in drawing two circles with a line (middle arrow) connecting them.


Sorry I could not post the image.

Edit* Thank you so much.

Can you help me more? Here is my code. I need to draw that mid-arrowed line between the dot-filled circles.

Thank you

\draw [dotted] (0,1) -- (0,10);
\draw [dotted] (1.5,1.3) -- (1.5,10);
\draw [dotted] (3.0,1.3) -- (3.0,10);
\draw [dotted] (4.5,1.3) -- (4.5,10);
\draw [dotted] (6.0,1.3) -- (6.0,10);
\draw [dotted] (7.5,1.3) -- (7.5,10);

% Lower Row
\filldraw[pattern=dots] (7.5,1) circle (0.2) ;
\filldraw[pattern=dots] (6.0,1) circle (0.2);
\filldraw[pattern=dots] (4.5,1) circle (0.2);
\draw (3.0,1) circle (0.2);
share|improve this question
Hi OOzypal and welcome to TeX.sx. In its current form, your question might not receive many answers. Please take a look at the How to Ask-page and try to improve your question according to the guidance found there. This may require you to show some effort on your part in terms of attempting a solution. If you have questions about what to do or if you don't quite understand what this means, please ask for clarification using the add comment function. – Benedikt Bauer Dec 18 '12 at 11:11
Welcome to TeX.SX. Note that you don't have to sign with your name since it automatically appears in the lower right corner of your post. Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. – Claudio Fiandrino Dec 18 '12 at 11:13
Can you post a link to an image showing what you need? A user with sufficient privileges will edit your question and insert it then. Plus it would be nice to post your code so far. – Count Zero Dec 18 '12 at 11:15
Does TikZ: How to draw an arrow in the middle of the line? or TikZ-pgf directed graph: change arrow color and location help you in finding a solution for the arrow? How are the circles specified? The arrows library gives you o-o. – Qrrbrbirlbel Dec 18 '12 at 11:36
up vote 3 down vote accepted

Here is a modification of your posted code with the arrows added.

Sample output



  \draw [dotted] (0,1) -- (0,10);
  \draw [dotted] (1.5,1.3) -- (1.5,10);
  \draw [dotted] (3.0,1.3) -- (3.0,10);
  \draw [dotted] (4.5,1.3) -- (4.5,10);
  \draw [dotted] (6.0,1.3) -- (6.0,10);
  \draw [dotted] (7.5,1.3) -- (7.5,10);

  % Lower Row
  \draw[pattern=dots] (7.5,1) node[circle,minimum size=0.4cm,draw,fill] (A) {};
  \draw[pattern=dots] (6.0,1) node[circle,minimum size=0.4cm,draw,fill] (B) {};
  \draw[pattern=dots] (4.5,1) node[circle,minimum size=0.4cm,draw,fill] (C) {};
  \draw (3.0,1) circle (0.2);

  % Arrows
  \draw[->] (B.east) -- ($(B.east)!0.5!(A.west)$);
  \draw ($(B.east)!0.5!(A.west)$) -- (A.west);
  \draw[->] (C.east) -- ($(C.east)!0.5!(B.west)$);
  \draw ($(C.east)!0.5!(B.west)$) -- (B.west);


The main change is to turn the circles in to nodes that are labelled. We can then refer to anchor positions such as A.west for attaching the lines.

share|improve this answer

Something like this?

\input tikz
\tikzset{circ/.style={circle, draw, fill=white},
  conn/.style={postaction=decorate, decoration={
    markings, mark=at position .55 with {\arrow{stealth}}}}}

\tikz\draw[conn] (0,0) node[circ]{} -- +(1,0) node[circ]{};

enter image description here

share|improve this answer
the description in the question sounds to me like a dynkin diagram. if that's the case, the circles here are much larger than the usual in such diagrams, and/or the arrowhead much smaller. – barbara beeton Dec 18 '12 at 14:05
@barbara: Yes, then it is more difficult (not the size of the circles; that could just be a, say, inner sep=.75ex, but all the other dynkin diagram reqs, like double lines with large angle arrows etc.) – morbusg Dec 20 '12 at 6:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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