summaryrefslogtreecommitdiffstats
path: root/test_dot.tex
blob: a913de19346c32e6de87d70014da7f3395f77cab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
% A simple cycle
% Author : Jerome Tremblay
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
    \node[shape=circle,draw=blue] (A) at (0,0) {$v_1$};
    \node[shape=circle,draw=red]  (B) at (2,2) {$v_2$};
    \node[shape=circle,draw=blue] (C) at (0,4) {$v_3$};

    \path [-](A) edge node[left] {} (B);
    \path [-](B) edge node[left] {} (C);
\end{tikzpicture}
\end{document}