Number: 758
Title: Lines go to wrong port
Submitter: John Currier
Date: Fri Aug 5 14:27:08 2005
Subsys: Dot
Version: 2.2.1
System: x86-Windows-XP
Severity: minor
Problem:
I'm using dot to generate relationships graphs in SchemaSpy (http://schemaspy.sourceforge.net). Sample output with the graphs is available here: http://schemaspy.sourceforge.net/sample.

Dot works great most of the time. Sometimes, however, the edges between tables all seem to combine to be equivalent to the first one defined. That is, if you swap these two lines:

TABLE2:PORT1:sw -> TABLE1:PORT1:se; TABLE2:PORT2:sw -> TABLE1:PORT2:se;

you'll get different results.
Input:

digraph relationshipsGraph {
  graph [
    rankdir="RL"
  ];
  TABLE1 [
    label=<
    <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
      <TR><TD ALIGN="CENTER">TABLE1</TD></TR>
      <TR><TD PORT="PORT1">PORT1</TD></TR>
      <TR><TD PORT="PORT2">PORT2</TD></TR>
    </TABLE>>
  ];
  TABLE2 [
    label=<
    <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
      <TR><TD ALIGN="CENTER">TABLE2</TD></TR>
      <TR><TD PORT="PORT1">PORT1</TD></TR>
      <TR><TD PORT="PORT2">PORT2</TD></TR>
    </TABLE>>
  ];
  TABLE2:PORT1:sw -> TABLE1:PORT1:se;
  TABLE2:PORT2:sw -> TABLE1:PORT2:se;
}
Output file: b729.png
Comments: [erg] This should all be fixed in 2.4.
Owner: erg
Status: Fixed (5 Aug 2005)