Previous questions showed how this can be done with plain tikz. I wonder if it is possible to use tikz drawing library for this purpose.

Here are two previous questions that do this without the use of tikz drawing library: Organisation chart in latex using tikz and Family tree with multiple marriage ties

ׁHow are organizational charts / family trees different from plain graphs? The main difference is that edges are made (mostly) of horizontal and vertical segments; it seems that tikz graph drawing does not support the -| nor the |- edge styles. Yet another difference is that it is common to draw some or all children of a node right below it, as in this gallery example

To clarify, I ask for a method of combining the smart algorithms for graph layout introduced in tikz 3 to produce similar results.

One obvious reason is that although the previous examples produce beautiful output, they do not scale at all. One has to manually design and then implement the layout for each particular instance.

Yet another, perhaps less obvious, reason is that the the family/organizational style can be more compact: vertically stacking children makes it possible to share parent-child edges. Even horizontal stacking is useful since it makes arrows clearer.

It is often the case that you need to squeeze the layout of a given graph to fit within hard page- or other geometric constraints. Employing this style could help.

Finally, yet another style for graph/tree layout could be used for making another visual distinction of trees within trees.

closed as unclear what you're asking by Paul Gessler, user13907, Svend Tveskæg, Matthew Leingang, Guido Jan 13 '15 at 5:48

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.

  • From your last two sentences, it seems you've already (partially) answered your question. Are you looking for more detail on the points you've brought up? Or are you looking for additional differences you've not listed in the question? – Paul Gessler Aug 8 '14 at 18:36
  • I don't understand the question. The two linked questions both use tikz and I am not sure what you mean by the difference between 'plain tikz' and 'tikz drawing library'. In fact the two questions also seem to use tikz libraries, so you can't mean 'tikz without additional libraries'. There are numerous examples of these kinds of diagrams on this site using all manner of different packages, libraries and methods for drawing them. What is the gap you see which this question is intended to address? – cfr Aug 8 '14 at 18:40
  • I mean tikz 3.0 graph drawing libraries. – Yossi Gil Aug 8 '14 at 18:56
  • 1
    I still don't get it. You seem to be pointing out that there are various ways to achieve X where features Y are a crucial part of X, and that method M does not support features Y, but then insisting that you want to achieve X, including Y, by method M. If so, why? – cfr Aug 8 '14 at 21:57
  • I trust this is question is sincere rather than snide. Let me edit the question to clarify. – Yossi Gil Aug 9 '14 at 6:10

Browse other questions tagged or ask your own question.