[prev in list] [next in list] [prev in thread] [next in thread] 

List:       graphviz-interest
Subject:    Re: [graphviz-interest] Suspected bug: Edges affect rankdir
From:       Ron Savage <ron () savage ! net ! au>
Date:       2011-11-03 6:45:03
Message-ID: 1320302703.11660.85.camel () zigzag ! savage ! net ! au
[Download RAW message or body]

Hi Ryan

On Thu, 2011-11-03 at 00:16 -0500, Ryan Schmidt wrote:
> On Nov 2, 2011, at 23:39, Ron Savage wrote:
> 
> > If I run:
> > 
> > dot -Tjpg test.dot > test.jpg
> > 
> > on this file:
> > 
> > digraph Perl
> > {
> > graph [ rankdir="TB" ]
> > node [ shape="oval" ]
> > edge [ color="grey" ]
> > "node.1"
> > "node.2"
> > }
> > 
> > I get 2 nodes horizontally, i.e. rankdir is ignored,
> 
> rankdir is not ignored; you haven't added any edges, therefore everything is placed \
> on the first rank. And since ranks go top to bottom with rankdir=TB, all your nodes \
> will appear on a horizontal line.

Thanx for the clarification...

> > but if I add an edge to the dot file thus:
> > 
> > digraph Perl
> > {
> > graph [ rankdir="TB" ]
> > node [ shape="oval" ]
> > edge [ color="grey" ]
> > "node.1"
> > "node.2"
> > "node.1" -> "node.2" [ label="" ]
> > }
> > 
> > the 2 nodes are vertical. I can't understand why this is.
> 
> Right. Now you've added an edge, so now nodes will get sorted into different ranks, \
> i.e. different horizontal lines. 
> 
> So, by whatever explanation you like, this is behaving as intended.

Hmmm. Intended sure, but not by this poor end-user :-).

-- 
Ron Savage
http://savage.net.au/
Ph: 0421 920 622

_______________________________________________
graphviz-interest@research.att.com
https://mailman.research.att.com/mailman/listinfo/graphviz-interest


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic