1

I'm trying to create binary trees using the Graphviz tool but not as I would like. For example: I would like to draw this tree:

enter image description here

With Graphviz I managed to do this:

enter image description here

In principle is fine but I would like that the nodes were arranged as the sample image. There is more space between nodes brothers.. I wish every time a parent node generates a son (though only child), the latter is or left or right of the father, and not in the middle.

Then I would like that the arrows are more subtle.

Searching the internet I could not find how to change the layout of the nodes nor how to make thinner arrows. I only found how to change the shape of the arrow but it is not what interests me.

Thanks to anyone who can help me!

  • 1
    possible duplicate of [Enforcing horizontal node ordering in a .dot tree](http://stackoverflow.com/questions/10902745/enforcing-horizontal-node-ordering-in-a-dot-tree) – marapet Feb 17 '15 at 20:59
  • Check out the question marked as duplicate - it contains a solution which will pretty-print binary trees. – marapet Feb 17 '15 at 21:00
  • @marapet I'm so sorry. Thanks! –  Feb 17 '15 at 22:17
  • No need to be sorry - just upvote the linked answer if it's useful to you :) – marapet Feb 18 '15 at 08:31

0 Answers0