summaryrefslogtreecommitdiffstats
path: root/test_dot.tex
diff options
context:
space:
mode:
Diffstat (limited to 'test_dot.tex')
-rw-r--r--test_dot.tex14
1 files changed, 14 insertions, 0 deletions
diff --git a/test_dot.tex b/test_dot.tex
new file mode 100644
index 0000000..a913de1
--- /dev/null
+++ b/test_dot.tex
@@ -0,0 +1,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} \ No newline at end of file