5 Graph Description Language (GDL) - Absint
5 Graph Description Language (GDL) - Absint
5 Graph Description Language (GDL) - Absint
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
The layout algorithms minoutdegree and mindegree happen to result in the same layout (see<br />
left of Figure 25).<br />
• mindegree, finetuning: yes<br />
Compared to the previous layout, the long edges Start–>1 Start–>2 and Start–>6 are<br />
eliminated. This changes the structure of the layout entirely (see right of Figure 21).<br />
5.6.4 Tree Layout<br />
The following example shows a typed syntax tree. This tree can either be drawn by the specialized<br />
algorithm for “downward laid-out trees” or by the normal algorithms. When the normal algorithms<br />
are used to draw a tree, it is advisable to increase the layout down factor in order to obtain good<br />
results (see Figure 26). If the layout down factor is not used, the incoming edges draw the nodes<br />
too much in the direction of the parent node.<br />
Figure 26: Example 11, normal layout<br />
A nice layout is achieved by the specialized tree algorithm with a tree factor of 0.9 (see Figure 27).<br />
If an orthogonal layout is needed, the attribute smanhattan_edges can be used. For trees, this attribute<br />
is more appropriate than the standard Manhattan layout with manhattan_edges (see Figure<br />
28).<br />
60