arbre.tex 754 Bytes
Newer Older
1
2
\tikzstyle{commit}=[draw,circle]

3
\begin{tikzpicture}[scale=0.7]
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
	\node[commit, fill=red!50] (C0)at(0,0){C0} ;
	\node[commit, fill=red!50] (C1)at(1.5,0){C1} ;
	\node[commit, fill=magenta!80] (C2)at(3,1){C2};
	\node[commit, fill=green!60] (C3)at(4,-1.5){C3};
	\node[commit, fill=green!60] (C5)at(6,-1.5){C5};
	\node[commit, fill=green!60] (C7)at(8,-1.5){C7};
	\node[commit, fill=cyan!90] (C4)at(5,-2.5){C4};
	\node[commit, fill=cyan!90] (C6)at(7,-2.5){C6};
	\draw[->, >=latex] (C1) -- (C0) ;
	\draw[->, >=latex] (C2) -- (C1) ;
	\draw[->, >=latex] (C3) -- (C1) ;
	\draw[->, >=latex] (C5) -- (C3) ;
	\draw[->, >=latex] (C7) -- (C5) ;
	\draw[->, >=latex] (C4) -- (C3) ;
	\draw[->, >=latex] (C6) -- (C4) ;
	\draw[->, >=latex] (C7) -- (C6) ;
\end{tikzpicture}