Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000891graphvizDotpublic2005-05-07 10:342011-04-28 04:03
ReporterThomas Rodriguez 
Assigned Toerg 
PlatformOS*-*-OS Version
Summary0000891: position of edges to or from node ports is unstable

I'm building a fairly complex graph of a compiler's IR and I'm using
records to represent some nodes as aggregates. While rendering
some very complex graphs I noticed a lot of problems with edges
involving ports. They weren't starting and stopping in the right
place and sometimes edges were being routed through the middle of a
node. I narrowed down a simple test case of the problem with the
selection of end points for ports.

The clipping is wrong for both of subgraph and the nodes start in
different places in each case even though the graphs are equivalent.
Adding an edge from A to C before the other edges causes the expected
layout. Changing the other of the edges also changes the layout. I
suspect it's something wrong with computing the boxes for the ports
but I don't understand the code well enough to come up with a fix.

I've also attached the original complex \<A HREF=""\>graph\</A\>
has the problem in spades.
One thing I noticed was that if I associated labels with
the edges then dot would lay them out properly. The problem is that
for complex graphs it causes the layout time to skyrocket which makes
it useless as a workaround.
Steps To Reproduce

digraph G {
        C2 [label="C"];
    A2 [shape=record, label="<p1> A | <p2> B "];
    A2:p2 -> C2;
    A2:p1 -> C2;

        C1 [label="C"];
    A1 [shape=record, label="<p1> A | <p2> B "];
    A1:p1 -> C1;
    A1:p2 -> C1;
TagsNo tags attached.
STATUS-COMMENTFixed (7 May 2005)
VERSION     2.2
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg

MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker