I have the following segment of code:
Code: Select all
\documentclass[a4paper,12pt,openany,oneside]{memoir}
\usepackage{tikz}
\begin{document}
\begin{figure}
\begin{center}
\begin{tikzpicture}
\node (source) at (0,0) [circle,draw] {$S$};
\node (relay) at (3,2) [circle,draw] {$R$};
\node (destination) at (6,0) [circle,draw] {$D$};
\draw [->] (source.60) to node [auto] {} (relay.west);
\draw [->] (relay.east) to node [auto] {} (destination.120);
\end{tikzpicture}
\end{center}
\end{figure}
\end{document}
1- The distance from node S to node R.
2- The distance from node R to node D, and
3- The distance from node S to node D.
And write on the largest circle: "Direct", and on the other two: "indirect".
How can I do that?
Thanks in advance