Wie schaffe ich es alle meine Blätter (A-D) auf die selbe Höhe (also die 4. Stufe des Baumes) zu bekommen? Open in writeLaTeX
\begin{tikzpicture}[scale=0.9,level/.style={sibling distance=60mm/#1}] \node[circle,draw] (AEDCB){$AEDCB$} child {node[circle,draw] (AED) {$AED$} child {node[circle,draw] (AE) {$AE$} child {node[circle,draw](A) {$A$}} child {node[circle,draw](E) {$E$}}} child {node[circle,draw] (D) {$D$}} } child {node[circle,draw](CB){$CB$} child {node[circle,draw](C) {$C$}} child {node[circle,draw](B) {$B$}} }; \end{tikzpicture} |
Eine Möglichkeit wäre, auch ohne Open in writeLaTeX
\documentclass[tikz,margin=5mm]{standalone} \begin{document} \begin{tikzpicture}[scale=0.9,level/.style={sibling distance=60mm/#1}] \node[circle,draw] (AEDCB){$AEDCB$} child {node[circle,draw] (AED) {$AED$} child {node[circle,draw] (AE) {$AE$} child {node[circle,draw](A) {$A$}} child {node[circle,draw](E) {$E$}}} child { child{node[circle,draw] (D) {$D$}}} } child {node[circle,draw](CB){$CB$} child { child{node[circle,draw](C) {$C$}}} child { child{node[circle,draw](B) {$B$}}} }; \end{tikzpicture} \end{document} Alternativ könnte man auch die Open in writeLaTeX
\documentclass[tikz,margin=5mm]{standalone} \usetikzlibrary{graphs,graphdrawing} \usegdlibrary{layered,trees} \begin{document} \begin{tikzpicture} \graph[layered layout,nodes={circle,draw},sibling distance=15mm,level distance=10mm,]{ AEDCB/$AEDCB$--AED/$AED$--{AE/$AE$--{A/$A$,E/$E$},D/$D$}, AEDCB--CB/$CB$--{C/$C$,B/$B$}, {[same layer]AED,CB}, {[same layer]A,E,D,C,B} }; \end{tikzpicture} \end{document} beantwortet 22 Apr '14, 13:54 esdd |