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.
• magnetic_field1, magnetic_field2<br />
Type:<br />
no, top_to_bottom, bottom_to_top, left_to_right, right_to_left,<br />
polar, circular, orthogonal, polcircular<br />
Default value: no<br />
Attribute of: top-level graph<br />
<strong>Description</strong>:<br />
This attribute only applies to the forcedir layout algorithm.<br />
Magnetic fields are part of impulse calculation. Forces that originate from a simulation of a<br />
spring embedder neglect the directions of edges. In directed graphs edges should point in a<br />
uniform direction, consequently magnetic forces are introduced, with edges being interpreted<br />
as magnetic needles that align according to a magnetic field.<br />
Two independent magnetic fields are possible. These two attributes specify the kind of magnetic<br />
field for each. If two fields are specified, the edges are influenced by both. The attributes<br />
magnetic_force1 and magnetic_force2 (p. 79) influence the strength of each field.<br />
For details, see p. 115.<br />
• magnetic_force1, magnetic_force2<br />
Type: integer<br />
Default value: 1 for both<br />
Attribute of: top-level graph<br />
<strong>Description</strong>:<br />
This attribute only applies to the forcedir layout algorithm.<br />
These two attributes specify the constant factors that are multiplied by the corresponding<br />
magnetic forces of the two magnetic fields.<br />
See also magnetic_field1 and magnetic_field2 (p. 79).<br />
For details, see p. 115.<br />
• manhattan_edges<br />
Type: yes, no<br />
Default value: no<br />
Attribute of: top-level graph, subgraphs<br />
<strong>Description</strong>:<br />
yes switches orthogonal layout on. Orthogonal layout (or Manhattan layout) means that all<br />
edges consist of horizontal or vertical line segments. Vertical edge segments might be shared<br />
by several edges, while horizontal edge segments are never shared. This results in aesthetic<br />
layouts for flowcharts. If orthogonal layout is used, the priority phase and straight phase are<br />
also used by default (see priorty_phase, p. 81 and straight_phase, p. 85).<br />
• margin<br />
Type: integer<br />
Default value: 0 if the value of borderwidth (p. 67) is zero, 3 otherwise<br />
Attribute of: subgraphs<br />
<strong>Description</strong>:<br />
79