[prev in list] [next in list] [prev in thread] [next in thread]
List: graphviz-interest
Subject: Re: [graphviz-interest] Vertical alignment of ranks
From: Alf Eaton <lists () hubmed ! org>
Date: 2007-10-31 17:37:40
Message-ID: 4728BD64.7030708 () hubmed ! org
[Download RAW message or body]
Gabriel Marin wrote:
> Alf Eaton wrote:
>> Here's an example dot file and the PDF it produces. As you can see,
>> I've tried setting the weight on the rank 'placeholder' edges, but to
>> no avail.
>> I've also tried using rank=source and rank=sink, but that only works
>> for the first and last nodes - the ones in between still curl around
>> in different directions.
>>
>> alf
>>
>>
>
> The components of your graph were connected with edges in both directions.
>
> For example assuming A and B have the same rank, and C and D have the
> same rank. Specifying
> A -> C; // tells dot that C and D should have rank higher than A and B
> D -> B; // specifies that A and B should have a higher rank than C and D
>
> A large weight attribute makes the edge more vertical and shorter, but I
> am not sure if it gives it a higher priority when computing ranks.
>
> Your y1987 -> y2001 -> y2005 edges were declared at the end of the
> file. You can either define them first, before the other edges, or
> better yet, make your graph consistent. Reverse the direction of the
> other edges such that they all specify the same rank order. You can
> modify the position of the arrow using either the dir attribute, or the
> arrowhead and arrowtail attributes.
>
> I am attaching the modified dot file.
Perfect. Thanks Gabriel.
alf
_______________________________________________
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