treeexample1.tex 966 B

12345678910111213141516171819202122232425262728
  1. %\begin{tikzpicture}[>=latex, node distance=1cm, on grid, auto,level/.style={sibling distance=60mm/#1}]
  2. \begin{tikzpicture}[>=latex, node distance=1cm, on grid,
  3. auto,composition/.style={yshift=11mm,scale=0.6,diamond,very thin,draw,fill=black}]
  4. \node [rectangle,draw] (root){$Process_{root}$}
  5. child{node[composition] (rc) {}
  6. child {
  7. node [rectangle,draw] (a) {$WD_A$}
  8. }
  9. child {
  10. node [rectangle,draw] (s1) {$WS_1$}
  11. }
  12. child {node [rectangle,draw] (b) {$WD_B$}
  13. child{node[composition] (bc) {}
  14. child {node [rectangle,draw] (child) {$Process_{child}$}
  15. child{node[composition] (cc) {}
  16. child{node [rectangle,draw] (c) {$WD_C$}}
  17. child{node [rectangle,draw] (s2) {$WS_2$}}
  18. child{node [rectangle,draw] (d) {$WD_D$}}
  19. }
  20. }
  21. }
  22. }
  23. };
  24. %\node[composition] at (root.south) [label=] {};
  25. %\node[composition] at (b.south) [label=] {};
  26. %\node[composition] at (child.south) [label=] {};
  27. \end{tikzpicture}