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"))
 
(node ((id "a")))
(node ((id "b")))
(node ((id "label") (label "rankdir='LR'") (shape "plaintext")))
(record ()
 
(node ((id "c")))
(node ((id "d"))))
(edge ((from "a") (to "c")))
(edge ((from "b") (to "d"))))
Example 2/2:
Source code:
'
(graph ((rankdir "TB"))
 
(node ((id "a")))
(node ((id "b")))
(node ((id "label") (label "rankdir='TB'") (shape "plaintext")))
(record ()
 
(node ((id "c")))
(node ((id "d"))))
(edge ((from "a") (to "c")))
(edge ((from "b") (to "d"))))
Sponsored links

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