summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-berge/NamedGraphs/examples/latex/tkzNamed-20-2-0.tex
blob: 1c140d89255d4d2c2d3865d5c0a3dbc62a7ca216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
%
% tkz-namedgraphs (27/05/2011)
%
% Coding (utf8) Creator (TeX) 
% Author Alain Matthes
\input{tkzpreamblenamed.ltx}

\begin{document}

 \begin{tikzpicture}
   \renewcommand*{\VertexBallColor}{orange!50!red}
   \renewcommand*{\EdgeDoubleDistance}{2pt}
   \SetGraphUnit{4}
   \GraphInit[vstyle=Shade]
   \tikzset{LabelStyle/.style =   {draw,
                                   fill  = yellow,
                                   text  = red}}
   \Vertex{A}
   \EA(A){B}
   \EA(B){C}
   {\SetGraphUnit{8}
   \NO(B){D}}
   \Edge[label=1](B)(D)
   \tikzset{EdgeStyle/.append style = {bend left}}
   \Edge[label=4](A)(B)
   \Edge[label=5](B)(A)
   \Edge[label=6](B)(C)
   \Edge[label=7](C)(B)
   \Edge[label=2](A)(D)
   \Edge[label=3](D)(C)
 \end{tikzpicture}

\end{document}