enter image description here

I want as in the picture

closed as unclear what you're asking by Henri Menke, Stefan Pinnow, Andrew, Zarko, TeXnician Jun 6 '17 at 5:58

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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 5 '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 5 '17 at 23:55
  • 1
    I want cookies. – Johannes_B Jun 6 '17 at 5:13

minimal effort question ⇒ minimal effort answer


  \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)"


enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.