Hi everyone,
I am wondering whether there is a way to use TreePlot to create organization or flow charts. Here is a default tree plot from the Wolfram documentation.
As intended, the branches radiate out from the centre of each vertex. In an organization or flow chart, the branches come out of each vertex at right angles to the vertex (example attached and hopefully embedded in this post).
I don’t understand because I did upload a PNG. In any case, if you do a Google search for organization chart and check out the images, it will be clear.
This is so cool. Just what the doctor ordered. It will take me a little time to study and understand your edge function, but it looks like the FreeQ[…,0.] condition ensures that the branches travel at right angles to the vertices and the division by 2 draws the horizontal lines. I never would have thought of this.
Hi, @Sander Huisman. This is fantastic. I’d like to add arrows using this code. I tried adding DirectedEdges->True with no avail. Any suggestions? Thanks!
That is because my own EdgeRenderingFunction ignores this DirectedEdges option. I’m fairly certain that if you change Line to Arrow (2 times) it should work…