-1

enter image description here

I want as in the picture

cfr
  • 198,882
  • 1
    TikZ has a trees library. tikz-qtree or forest are TikZ-based tree-drawing packages. Or the pstricks stuff. Most of this is in the tags you added, so you seem to know where to start. Why did you add sticky-labels and ticks, though? – cfr Jun 05 '17 at 23:51
  • 1
    Questions on this site should not just post an image and ask for code. Please include code for a minimal working (or non-working) example (MWE or MnWE) and ask about a specific problem you want help with. There are numerous examples of trees on the site. Please start by looking at those or the package documentation. If you get stuck, post your code and a specify question. – cfr Jun 05 '17 at 23:55
  • 1
    I want cookies. – Johannes_B Jun 06 '17 at 05:13

1 Answers1

1

minimal effort question ⇒ minimal effort answer

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary{trees}
\begin{document}

\begin{tikzpicture}
  \graph[tree layout,grow=right,fresh nodes] {
    "" -- {
      "1" -- {
        "3 (1,3)",
        "5 (1,5)" 
      },
      "2" -- {
        "3 (2,3)",
        "5 (2,5)" 
      },
      "4" -- {
        "3 (4,3)",
        "5 (4,5)"
      }
    }
  };
\end{tikzpicture}

\end{document}

enter image description here

Henri Menke
  • 109,596