The tree representation begins on the first line of the file, unless that line is a heading, in which case the tree is represented on the lines immediately following the heading. The tree representation consists of a sequence of non-blank lines, each corresponding to a node of the tree. (In the dot language this is possible only to a certain extent, in some cases, and rather indirectly.) One can set the exact horizontal and vertical spacing between nodes. Tree diagrams can be produced that show a tree with the root oriented upwards, downwards, or leftwards - this is achieved through a tiny variation of the way ttdot is called. Whether to use these layouts or stick to graphviz's own node arrangement mechanisms is up to the user: one could choose to do the latter and still make use of ttdot's tree description language. Ttdot implements simple but useful tree-specific layouts not available in graphviz. The presence of nodes with the same labels does not require, as it does in dot, introducing formal node names solely for distinguishing purposes.ĭirected or non-directed dot graphs can be produced from the same tree description. Worth noticing is that the tree description format is almost identical to the output of the tree utility in the most popular operating systems It provides a simple and adequate language for describing trees that can be used as a handier alternative, or an addition, to the dot language.Ī tree description for ttdot is easy not only to generate, but also to edit, both by hand and programmatically.įor not too large trees, the tree structure is easily discernible by looking at the description file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |