daily pastebin goal
91%
SHARE
TWEET

Untitled

a guest Feb 2nd, 2011 422 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \begin{figure}[h]
  2. \centering
  3. \begin{tikzpicture}[level/.style={sibling distance=35mm/#1},style={>=latex,->}]
  4.     \tikzstyle{every node}=[circle,draw,text centered,minimum height=2.5em]
  5.     \node[tree,draw=red] (z) {}
  6.        child {
  7.            node[tree] {}
  8.            child { node[tree] {\Large $a$} }
  9.             child { node[tree] {\Large $b$} }
  10.         }
  11.         child {
  12.            node[tree] {}
  13.            child { node[tree] {\Large $c$} }
  14.         }
  15.         child {
  16.            node[tree,draw=red] (1) {}
  17.            child { node[tree] {\Large $d$} }
  18.             child {
  19.                node[tree,draw=red] (2) {}
  20.                child { node[tree,draw=red] (3) {\Large $e$} }
  21.                 child { node[tree] {\Large $f$} }
  22.             }
  23.         }
  24.     ;
  25.  
  26.     \path[-latex,color=red] (z) edge[bend left=20] (1);
  27.     \path[-latex,color=red] (1) edge[bend left=20] (2);
  28.     \path[-latex,color=red] (2) edge[bend right=20] (3);
  29. \end{tikzpicture}
  30. \caption{Пример дерева с отмеченным путем от корня к листу}
  31. \label{fig:simple-tree}
  32. \end{figure}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top