<DD> Sets direction of graph layout. For example, if <B>rankdir</B>="LR",
and barring cycles, an edge <CODE>T -> H;</CODE> will go
from left to right. By default, graphs are laid out from top to bottom.
+ <P>
+ This attribute also has a side-effect in determining how record nodes
+ are interpreted. See <A HREF="shapes.html#record">record shapes</A>.
<DT><A NAME=d:ranksep HREF=#a:ranksep><STRONG>ranksep</STRONG></A>
<DD> In dot, this gives the desired rank separation, in inches. This is
oriented left to right, while "{A | B | C | D}" will have them
from top to bottom and "A | { B | C } | D" will have "B" over "C", with
"A" to the left and "D" to the right of "B" and "C".
+<P>
+The initial orientation of a record node depends on the
+<A HREF="attrs.html#d:rankdir">rankdir</A> attribute. If this attribute
+is <TT>TB</TT> (the default) or <TT>TB</TT>, corresponding to vertical
+layouts, the top-level fields in a record are displayed horizontally.
+If, however, this attribute is <TT>LR</TT> or <TT>RL</TT>,
+corresponding to horizontal layouts, the top-level fields are
+displayed vertically.
<P>
As an example of a record node, the dot input
<XMP>
yields the figure<BR>
<IMG SRC=record.gif>
<P>
+If we add the line
+<XMP>
+ rankdir=LR
+</XMP>
+we get the layout<BR>
+<IMG SRC=record2.gif>
+<P>
If we change node <TT>struct1</TT> to have shape <TT>Mrecord</TT>,
it then looks like:<BR>
<IMG SRC=mrecord.gif>