Created
October 21, 2018 19:03
-
-
Save nbro/d50b2ce40fd40a1c7a53186e4e083c87 to your computer and use it in GitHub Desktop.
Code to be made a template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\begin{tikzpicture}[-, >=stealth', level/.style={sibling distance = 8cm/#1, level distance = 2cm}] | |
\node [circle_node] (A) {$+$} | |
child { node [square_node] (B) {-} | |
child { node [circle_node] (E) {+} | |
child { node [square_node] (L) {-} | |
child [sibling distance = 1cm] { node [circle_node] (V) {$7$} } | |
child [sibling distance = 1cm] { node [circle_node] (W) {$4$} } | |
} | |
child { node [square_node] (M) {-} | |
child [sibling distance = 1cm] { node [circle_node] (X) {$2$} } | |
child [sibling distance = 1cm] { node [circle_node] (Y) {$3$} } | |
} | |
} | |
child { node [circle_node] (F) {+} | |
child { node [square_node] (N) {-} | |
child [sibling distance = 1cm] { node [circle_node] (Z) {$3$} } | |
child [sibling distance = 1cm] { node [circle_node] (A2) {$5$} } | |
} | |
} | |
} | |
child { node [square_node] (C) {-} | |
child { node [circle_node] (G) {+} | |
child { node [square_node] (O) {-} | |
child [sibling distance = 1cm] { node [circle_node] (B2) {$2$} } | |
child [sibling distance = 1cm] { node [circle_node] (C2) {$0$} } | |
} | |
child { node [square_node] (P) {-} | |
child [sibling distance = 1cm] { node [circle_node] (D2) {$-1$} } | |
child [sibling distance = 1cm] { node [circle_node] (E2) {$-2$} } | |
} | |
} | |
child { node [circle_node] (H) {+} | |
child { node [square_node] (Q) {-} | |
child [sibling distance = 1cm] { node [circle_node] (F2) {$3$} } | |
child [sibling distance = 1cm] { node [circle_node] (G2) {$-1$} } | |
} | |
} | |
} | |
child { node [square_node] (D) {-} | |
child { node [circle_node] (I) {+} | |
child { node [square_node] (R) {-} | |
child [sibling distance = 1cm] { node [circle_node] (I2) {$4$} } | |
child [sibling distance = 1cm] { node [circle_node] (K2) {$5$} } | |
} | |
} | |
child { node [circle_node] (K) {+} | |
child { node [square_node] (S) {-} | |
child [sibling distance = 1cm] { node [circle_node] (L2) {$5$} } | |
child [sibling distance = 1cm] { node [circle_node] (M2) {$7$} } | |
} | |
child { node [square_node] (T) {-} | |
child [sibling distance = 1cm] { node [circle_node] (N2) {$8$} } | |
child [sibling distance = 1cm] { node [circle_node] (O2) {$8$} } | |
} | |
} | |
}; | |
% Add labels to nodes | |
\node [blue, above] at (A.north) {\tiny $[\aalpha, \abeta]$}; | |
\node [blue, above left] at (B.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above left] at (C.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above right] at (D.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above left] at (E.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above right] at (F.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above left] at (G.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above right] at (H.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above left] at (I.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above right] at (K.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above left] at (L.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above right] at (M.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above left] at (N.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above left] at (O.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above right] at (P.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above right] at (Q.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above left] at (R.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above left] at (S.north) {\tiny $[-\infty, \infty]$}; | |
\node [blue, above right] at (T.north) {\tiny $[-\infty, \infty]$}; | |
\end{tikzpicture} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment