Decision tree nodes overlapping with TikzLabeling precisely-positioned “tree” nodesTikz-Tree: Arrow-style...

Maximum likelihood parameters deviate from posterior distributions

Java Casting: Java 11 throws LambdaConversionException while 1.8 does not

How does one intimidate enemies without having the capacity for violence?

Can a vampire attack twice with their claws using multiattack?

Can I ask the recruiters in my resume to put the reason why I am rejected?

how to check a propriety using r studio

Two films in a tank, only one comes out with a development error – why?

Operational amplifier as a comparator at high frequency

Are astronomers waiting to see something in an image from a gravitational lens that they've already seen in an adjacent image?

How old can references or sources in a thesis be?

What does "Puller Prush Person" mean?

What's the point of deactivating Num Lock on login screens?

Filter any system log file by date or date range

Alternative to sending password over mail?

How can bays and straits be determined in a procedurally generated map?

How to format long polynomial?

What's that red-plus icon near a text?

What defenses are there against being summoned by the Gate spell?

What is a clear way to write a bar that has an extra beat?

Is it unprofessional to ask if a job posting on GlassDoor is real?

Why can't I see bouncing of switch on oscilloscope screen?

How to regain access to running applications after accidentally zapping X.org?

Mutually beneficial digestive system symbiotes

meaning of に in 本当に?



Decision tree nodes overlapping with Tikz


Labeling precisely-positioned “tree” nodesTikz-Tree: Arrow-style depending on parent nodeHow to draw a tree with fixed node distances?Adjust edge endpoints depending on node labelHow can I draw a tree like in the image?Adding text above a node in Tikzpicture tree diagramHow to typeset a MinMax algorithm tree?forest: Draw a roof over multiple children in forest?Tikz mindmap customize nodes color, distance and sizeImproving a decision tree drawn with TikZ / forest













5















Does anyone know how to prevent the branches of a decision tree from converging on each other? This is with Tikz - I've tried tweaking the sibling distance and things like that, but two of the branches at the end converge so that the final values are illegible.



Secondly, does anyone know how to put in a dashed line between the two square "choice" siblings? To indicate an information set.



documentclass{article}
usepackage{tikz}
tikzset{
choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black, font=normalsize},
chance/.style = {shape=circle, draw, align=center, color=black, fill=black, font=normalsize},
root/.style = {choice, font=normalsize, color=black},
outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
}

begin{figure}[H]
centering
begin{tikzpicture}
[
grow = right,
sibling distance = 6em,
level distance = 8em,
edge from parent/.style = {draw, -latex},
every node/.style = {font=normalsize},
sloped
]
node [root] {}
child {node [outcome, label=right:{$30}] {}
edge from parent node [below] {}}
child {node [choice] {}
child {node [chance] {}
child {node [choice] {}
child {node [outcome, label=right:{$10}]{}}
child {node[outcome, label=right:{$100}]{}}
edge from parent node [below] {.5}}
child {node [choice]{}
child {node [outcome, label=right:{$45}]{}}
child {node [outcome, label=right:{$55}]{}}
edge from parent node [above] {.5}}
edge from parent node [below] {}}
child {node [outcome, label=right:{$25}]{}
edge from parent node [above] {}}
edge from parent node [above] {}};
end{tikzpicture}
caption{Sample Decision Tree} label{fig: Sample}
end{figure}









share|improve this question







New contributor




user185143 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    5















    Does anyone know how to prevent the branches of a decision tree from converging on each other? This is with Tikz - I've tried tweaking the sibling distance and things like that, but two of the branches at the end converge so that the final values are illegible.



    Secondly, does anyone know how to put in a dashed line between the two square "choice" siblings? To indicate an information set.



    documentclass{article}
    usepackage{tikz}
    tikzset{
    choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black, font=normalsize},
    chance/.style = {shape=circle, draw, align=center, color=black, fill=black, font=normalsize},
    root/.style = {choice, font=normalsize, color=black},
    outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
    }

    begin{figure}[H]
    centering
    begin{tikzpicture}
    [
    grow = right,
    sibling distance = 6em,
    level distance = 8em,
    edge from parent/.style = {draw, -latex},
    every node/.style = {font=normalsize},
    sloped
    ]
    node [root] {}
    child {node [outcome, label=right:{$30}] {}
    edge from parent node [below] {}}
    child {node [choice] {}
    child {node [chance] {}
    child {node [choice] {}
    child {node [outcome, label=right:{$10}]{}}
    child {node[outcome, label=right:{$100}]{}}
    edge from parent node [below] {.5}}
    child {node [choice]{}
    child {node [outcome, label=right:{$45}]{}}
    child {node [outcome, label=right:{$55}]{}}
    edge from parent node [above] {.5}}
    edge from parent node [below] {}}
    child {node [outcome, label=right:{$25}]{}
    edge from parent node [above] {}}
    edge from parent node [above] {}};
    end{tikzpicture}
    caption{Sample Decision Tree} label{fig: Sample}
    end{figure}









    share|improve this question







    New contributor




    user185143 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      5












      5








      5








      Does anyone know how to prevent the branches of a decision tree from converging on each other? This is with Tikz - I've tried tweaking the sibling distance and things like that, but two of the branches at the end converge so that the final values are illegible.



      Secondly, does anyone know how to put in a dashed line between the two square "choice" siblings? To indicate an information set.



      documentclass{article}
      usepackage{tikz}
      tikzset{
      choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black, font=normalsize},
      chance/.style = {shape=circle, draw, align=center, color=black, fill=black, font=normalsize},
      root/.style = {choice, font=normalsize, color=black},
      outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
      }

      begin{figure}[H]
      centering
      begin{tikzpicture}
      [
      grow = right,
      sibling distance = 6em,
      level distance = 8em,
      edge from parent/.style = {draw, -latex},
      every node/.style = {font=normalsize},
      sloped
      ]
      node [root] {}
      child {node [outcome, label=right:{$30}] {}
      edge from parent node [below] {}}
      child {node [choice] {}
      child {node [chance] {}
      child {node [choice] {}
      child {node [outcome, label=right:{$10}]{}}
      child {node[outcome, label=right:{$100}]{}}
      edge from parent node [below] {.5}}
      child {node [choice]{}
      child {node [outcome, label=right:{$45}]{}}
      child {node [outcome, label=right:{$55}]{}}
      edge from parent node [above] {.5}}
      edge from parent node [below] {}}
      child {node [outcome, label=right:{$25}]{}
      edge from parent node [above] {}}
      edge from parent node [above] {}};
      end{tikzpicture}
      caption{Sample Decision Tree} label{fig: Sample}
      end{figure}









      share|improve this question







      New contributor




      user185143 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Does anyone know how to prevent the branches of a decision tree from converging on each other? This is with Tikz - I've tried tweaking the sibling distance and things like that, but two of the branches at the end converge so that the final values are illegible.



      Secondly, does anyone know how to put in a dashed line between the two square "choice" siblings? To indicate an information set.



      documentclass{article}
      usepackage{tikz}
      tikzset{
      choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black, font=normalsize},
      chance/.style = {shape=circle, draw, align=center, color=black, fill=black, font=normalsize},
      root/.style = {choice, font=normalsize, color=black},
      outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
      }

      begin{figure}[H]
      centering
      begin{tikzpicture}
      [
      grow = right,
      sibling distance = 6em,
      level distance = 8em,
      edge from parent/.style = {draw, -latex},
      every node/.style = {font=normalsize},
      sloped
      ]
      node [root] {}
      child {node [outcome, label=right:{$30}] {}
      edge from parent node [below] {}}
      child {node [choice] {}
      child {node [chance] {}
      child {node [choice] {}
      child {node [outcome, label=right:{$10}]{}}
      child {node[outcome, label=right:{$100}]{}}
      edge from parent node [below] {.5}}
      child {node [choice]{}
      child {node [outcome, label=right:{$45}]{}}
      child {node [outcome, label=right:{$55}]{}}
      edge from parent node [above] {.5}}
      edge from parent node [below] {}}
      child {node [outcome, label=right:{$25}]{}
      edge from parent node [above] {}}
      edge from parent node [above] {}};
      end{tikzpicture}
      caption{Sample Decision Tree} label{fig: Sample}
      end{figure}






      tikz-pgf tikz-trees trees






      share|improve this question







      New contributor




      user185143 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      user185143 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      user185143 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 5 hours ago









      user185143user185143

      282




      282




      New contributor




      user185143 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      user185143 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      user185143 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          2 Answers
          2






          active

          oldest

          votes


















          3














          I use yshift option to change the position of the nodes, to avoid overlapping.



          I give two choice nodes some names (a and b) and draw a dashed line as usual.



          Code:



          documentclass[tikz]{standalone}
          tikzset{
          choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black, font=normalsize},
          chance/.style = {shape=circle, draw, align=center, color=black, fill=black, font=normalsize},
          root/.style = {choice, font=normalsize, color=black},
          outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
          }

          begin{document}
          begin{tikzpicture}
          [
          grow = right,
          sibling distance = 6em,
          level distance = 8em,
          edge from parent/.style = {draw, -latex},
          every node/.style = {font=normalsize},
          sloped
          ]
          node [root] {}
          child {node [outcome, label=right:{$30}] {}
          edge from parent node [below] {}}
          child {node [choice] {}
          child {node [chance] {}
          child {node [choice] (a) {}
          child {node [outcome, label=right:{$10}]{}}
          child {node[yshift=-2em,outcome, label=right:{$100}]{}}
          edge from parent node [below] {.5}}
          child {node [choice] (b) {}
          child {node [yshift=2em,outcome, label=right:{$45}]{}}
          child {node [outcome, label=right:{$55}]{}}
          edge from parent node [above] {.5}}
          edge from parent node [below] {}}
          child {node [outcome, label=right:{$25}]{}
          edge from parent node [above] {}}
          edge from parent node [above] {}};
          draw[dashed] (a)--(b);
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer































            3














            I would like to recommend forest, where the syntax is simpler and you do not have to worry about these things.



            documentclass{article}
            usepackage[edges]{forest}
            tikzset{
            choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black},
            chance/.style = {shape=circle, draw, align=center, color=black, fill=black},
            root/.style = {choice, font=normalsize, color=black},
            outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
            }

            begin{document}
            begin{forest}
            for tree={grow'=east,edge={-latex},l+=1cm}
            [,root
            [,choice
            [$25]
            [,chance
            [,choice,edge label={node[midway,above,sloped]{.5}}
            [$55]
            [$45]
            ]
            [,choice,edge label={node[midway,below,sloped]{.5}}
            [$100]
            [$10]
            ]
            ]
            ]
            [$30]
            ]
            end{forest}
            end{document}


            enter image description here






            share|improve this answer
























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "85"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });






              user185143 is a new contributor. Be nice, and check out our Code of Conduct.










              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483367%2fdecision-tree-nodes-overlapping-with-tikz%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3














              I use yshift option to change the position of the nodes, to avoid overlapping.



              I give two choice nodes some names (a and b) and draw a dashed line as usual.



              Code:



              documentclass[tikz]{standalone}
              tikzset{
              choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black, font=normalsize},
              chance/.style = {shape=circle, draw, align=center, color=black, fill=black, font=normalsize},
              root/.style = {choice, font=normalsize, color=black},
              outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
              }

              begin{document}
              begin{tikzpicture}
              [
              grow = right,
              sibling distance = 6em,
              level distance = 8em,
              edge from parent/.style = {draw, -latex},
              every node/.style = {font=normalsize},
              sloped
              ]
              node [root] {}
              child {node [outcome, label=right:{$30}] {}
              edge from parent node [below] {}}
              child {node [choice] {}
              child {node [chance] {}
              child {node [choice] (a) {}
              child {node [outcome, label=right:{$10}]{}}
              child {node[yshift=-2em,outcome, label=right:{$100}]{}}
              edge from parent node [below] {.5}}
              child {node [choice] (b) {}
              child {node [yshift=2em,outcome, label=right:{$45}]{}}
              child {node [outcome, label=right:{$55}]{}}
              edge from parent node [above] {.5}}
              edge from parent node [below] {}}
              child {node [outcome, label=right:{$25}]{}
              edge from parent node [above] {}}
              edge from parent node [above] {}};
              draw[dashed] (a)--(b);
              end{tikzpicture}
              end{document}


              enter image description here






              share|improve this answer




























                3














                I use yshift option to change the position of the nodes, to avoid overlapping.



                I give two choice nodes some names (a and b) and draw a dashed line as usual.



                Code:



                documentclass[tikz]{standalone}
                tikzset{
                choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black, font=normalsize},
                chance/.style = {shape=circle, draw, align=center, color=black, fill=black, font=normalsize},
                root/.style = {choice, font=normalsize, color=black},
                outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
                }

                begin{document}
                begin{tikzpicture}
                [
                grow = right,
                sibling distance = 6em,
                level distance = 8em,
                edge from parent/.style = {draw, -latex},
                every node/.style = {font=normalsize},
                sloped
                ]
                node [root] {}
                child {node [outcome, label=right:{$30}] {}
                edge from parent node [below] {}}
                child {node [choice] {}
                child {node [chance] {}
                child {node [choice] (a) {}
                child {node [outcome, label=right:{$10}]{}}
                child {node[yshift=-2em,outcome, label=right:{$100}]{}}
                edge from parent node [below] {.5}}
                child {node [choice] (b) {}
                child {node [yshift=2em,outcome, label=right:{$45}]{}}
                child {node [outcome, label=right:{$55}]{}}
                edge from parent node [above] {.5}}
                edge from parent node [below] {}}
                child {node [outcome, label=right:{$25}]{}
                edge from parent node [above] {}}
                edge from parent node [above] {}};
                draw[dashed] (a)--(b);
                end{tikzpicture}
                end{document}


                enter image description here






                share|improve this answer


























                  3












                  3








                  3







                  I use yshift option to change the position of the nodes, to avoid overlapping.



                  I give two choice nodes some names (a and b) and draw a dashed line as usual.



                  Code:



                  documentclass[tikz]{standalone}
                  tikzset{
                  choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black, font=normalsize},
                  chance/.style = {shape=circle, draw, align=center, color=black, fill=black, font=normalsize},
                  root/.style = {choice, font=normalsize, color=black},
                  outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
                  }

                  begin{document}
                  begin{tikzpicture}
                  [
                  grow = right,
                  sibling distance = 6em,
                  level distance = 8em,
                  edge from parent/.style = {draw, -latex},
                  every node/.style = {font=normalsize},
                  sloped
                  ]
                  node [root] {}
                  child {node [outcome, label=right:{$30}] {}
                  edge from parent node [below] {}}
                  child {node [choice] {}
                  child {node [chance] {}
                  child {node [choice] (a) {}
                  child {node [outcome, label=right:{$10}]{}}
                  child {node[yshift=-2em,outcome, label=right:{$100}]{}}
                  edge from parent node [below] {.5}}
                  child {node [choice] (b) {}
                  child {node [yshift=2em,outcome, label=right:{$45}]{}}
                  child {node [outcome, label=right:{$55}]{}}
                  edge from parent node [above] {.5}}
                  edge from parent node [below] {}}
                  child {node [outcome, label=right:{$25}]{}
                  edge from parent node [above] {}}
                  edge from parent node [above] {}};
                  draw[dashed] (a)--(b);
                  end{tikzpicture}
                  end{document}


                  enter image description here






                  share|improve this answer













                  I use yshift option to change the position of the nodes, to avoid overlapping.



                  I give two choice nodes some names (a and b) and draw a dashed line as usual.



                  Code:



                  documentclass[tikz]{standalone}
                  tikzset{
                  choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black, font=normalsize},
                  chance/.style = {shape=circle, draw, align=center, color=black, fill=black, font=normalsize},
                  root/.style = {choice, font=normalsize, color=black},
                  outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
                  }

                  begin{document}
                  begin{tikzpicture}
                  [
                  grow = right,
                  sibling distance = 6em,
                  level distance = 8em,
                  edge from parent/.style = {draw, -latex},
                  every node/.style = {font=normalsize},
                  sloped
                  ]
                  node [root] {}
                  child {node [outcome, label=right:{$30}] {}
                  edge from parent node [below] {}}
                  child {node [choice] {}
                  child {node [chance] {}
                  child {node [choice] (a) {}
                  child {node [outcome, label=right:{$10}]{}}
                  child {node[yshift=-2em,outcome, label=right:{$100}]{}}
                  edge from parent node [below] {.5}}
                  child {node [choice] (b) {}
                  child {node [yshift=2em,outcome, label=right:{$45}]{}}
                  child {node [outcome, label=right:{$55}]{}}
                  edge from parent node [above] {.5}}
                  edge from parent node [below] {}}
                  child {node [outcome, label=right:{$25}]{}
                  edge from parent node [above] {}}
                  edge from parent node [above] {}};
                  draw[dashed] (a)--(b);
                  end{tikzpicture}
                  end{document}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 5 hours ago









                  JouleVJouleV

                  10.8k22560




                  10.8k22560























                      3














                      I would like to recommend forest, where the syntax is simpler and you do not have to worry about these things.



                      documentclass{article}
                      usepackage[edges]{forest}
                      tikzset{
                      choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black},
                      chance/.style = {shape=circle, draw, align=center, color=black, fill=black},
                      root/.style = {choice, font=normalsize, color=black},
                      outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
                      }

                      begin{document}
                      begin{forest}
                      for tree={grow'=east,edge={-latex},l+=1cm}
                      [,root
                      [,choice
                      [$25]
                      [,chance
                      [,choice,edge label={node[midway,above,sloped]{.5}}
                      [$55]
                      [$45]
                      ]
                      [,choice,edge label={node[midway,below,sloped]{.5}}
                      [$100]
                      [$10]
                      ]
                      ]
                      ]
                      [$30]
                      ]
                      end{forest}
                      end{document}


                      enter image description here






                      share|improve this answer




























                        3














                        I would like to recommend forest, where the syntax is simpler and you do not have to worry about these things.



                        documentclass{article}
                        usepackage[edges]{forest}
                        tikzset{
                        choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black},
                        chance/.style = {shape=circle, draw, align=center, color=black, fill=black},
                        root/.style = {choice, font=normalsize, color=black},
                        outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
                        }

                        begin{document}
                        begin{forest}
                        for tree={grow'=east,edge={-latex},l+=1cm}
                        [,root
                        [,choice
                        [$25]
                        [,chance
                        [,choice,edge label={node[midway,above,sloped]{.5}}
                        [$55]
                        [$45]
                        ]
                        [,choice,edge label={node[midway,below,sloped]{.5}}
                        [$100]
                        [$10]
                        ]
                        ]
                        ]
                        [$30]
                        ]
                        end{forest}
                        end{document}


                        enter image description here






                        share|improve this answer


























                          3












                          3








                          3







                          I would like to recommend forest, where the syntax is simpler and you do not have to worry about these things.



                          documentclass{article}
                          usepackage[edges]{forest}
                          tikzset{
                          choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black},
                          chance/.style = {shape=circle, draw, align=center, color=black, fill=black},
                          root/.style = {choice, font=normalsize, color=black},
                          outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
                          }

                          begin{document}
                          begin{forest}
                          for tree={grow'=east,edge={-latex},l+=1cm}
                          [,root
                          [,choice
                          [$25]
                          [,chance
                          [,choice,edge label={node[midway,above,sloped]{.5}}
                          [$55]
                          [$45]
                          ]
                          [,choice,edge label={node[midway,below,sloped]{.5}}
                          [$100]
                          [$10]
                          ]
                          ]
                          ]
                          [$30]
                          ]
                          end{forest}
                          end{document}


                          enter image description here






                          share|improve this answer













                          I would like to recommend forest, where the syntax is simpler and you do not have to worry about these things.



                          documentclass{article}
                          usepackage[edges]{forest}
                          tikzset{
                          choice/.style = {shape=rectangle, draw, align=center, color=black, fill=black},
                          chance/.style = {shape=circle, draw, align=center, color=black, fill=black},
                          root/.style = {choice, font=normalsize, color=black},
                          outcome/.style = {shape=rectangle, draw=white, align=center, font=tiny, parent anchor=left},
                          }

                          begin{document}
                          begin{forest}
                          for tree={grow'=east,edge={-latex},l+=1cm}
                          [,root
                          [,choice
                          [$25]
                          [,chance
                          [,choice,edge label={node[midway,above,sloped]{.5}}
                          [$55]
                          [$45]
                          ]
                          [,choice,edge label={node[midway,below,sloped]{.5}}
                          [$100]
                          [$10]
                          ]
                          ]
                          ]
                          [$30]
                          ]
                          end{forest}
                          end{document}


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 5 hours ago









                          marmotmarmot

                          115k5145276




                          115k5145276






















                              user185143 is a new contributor. Be nice, and check out our Code of Conduct.










                              draft saved

                              draft discarded


















                              user185143 is a new contributor. Be nice, and check out our Code of Conduct.













                              user185143 is a new contributor. Be nice, and check out our Code of Conduct.












                              user185143 is a new contributor. Be nice, and check out our Code of Conduct.
















                              Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483367%2fdecision-tree-nodes-overlapping-with-tikz%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              IEEEtran - How to include ORCID in TeX/PDF with PdfLatexIs there a standard way to include ORCID in TeX /...

                              Cicindela nigrior Przypisy | Menu nawigacyjneCicindela varians unicolorManual for the Identification of the...

                              Glossaries-extra: Adding glossaries package to “Clas­sicTh­e­sis” template by Dr. André Miede v. 4.6 ...