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

List:       graphviz-interest
Subject:    Re: [graphviz-interest] Linking individual table cells
From:       "Emden R. Gansner" <erg () research ! att ! com>
Date:       2007-08-10 17:23:26
Message-ID: 46BC9F0E.4060604 () research ! att ! com
[Download RAW message or body]

> My goal is then to portray the database's foreign key relationships by 
> drawing arrows between the linked cells. I've managed to get that done 
> in the attached sample, but the arrows go straight through the other 
> nodes and not around them. I've tried fixing this by using headport 
> and tailport, but can't get it to work. Am I dreaming in technicolor 
> about this, or am I just missing something basic?
In general, cells can be buried deeply within a node and have no obvious 
good path for an edge to avoid traversing
other parts of the node. So, by default, edges just take their normal 
route from the center of the cell.

If you know that a cell touches the node's boundary, you can use a 
compass point to start the edge on the boundary:

    TABLE1:TABLE1_CELL1_PORT:w -> TABLE2:TABLE2_CELL2_PORT:w;
    TABLE1:TABLE1_CELL1_PORT:w -> TABLE2:TABLE2_CELL4_PORT:w;
    TABLE1:TABLE1_CELL2_PORT:e -> TABLE2:TABLE2_CELL4_PORT:e;

This gives the output shown in the attached figure.

It is on our to-do list to recognize this case and assign the compass 
point automatically.

    Emden


["out.png" (image/png)]

_______________________________________________
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