Attribute "rankdir"

Use:optional
Used by:graph
Description:Sets direction of graph layout. If rankdir="LR", the graph is laid out from left to right, i.e., directed edges tend to go from left to right. By default, graphs are laid out from top to bottom ("TB").
Values:"TB", "LR"
Default Value:TB
Sponsored links:

Example 1/2:
Source code:
<graph rankdir="LR" file-name="graphs/rankdir1">
  
<node id="a"/>
<node id="b"/>
<node id="label" label="rankdir='LR'" shape="plaintext"/>
<record>
  
<node id="c"/>
<node id="d"/>
</record>
<edge from="a" to="c"/>
<edge from="b" to="d"/>
</graph>
Example 2/2:
Source code:
<graph rankdir="TB" file-name="graphs/rankdir2">
  
<node id="a"/>
<node id="b"/>
<node id="label" label="rankdir='TB'" shape="plaintext"/>
<record>
  
<node id="c"/>
<node id="d"/>
</record>
<edge from="a" to="c"/>
<edge from="b" to="d"/>
</graph>
Sponsored links

 Copyright 2002-2010 by Martin Loetzsch (http://martin-loetzsch.de), all rights reserved. See the DotML licence for details.