Number: 1429
Title: Can┤t use an edge from a cluster that are included in other cluster subgraph
Submitter: Jes├║s Romero de Pablos
Date: Fri Aug 22 10:00:14 2008
Subsys: Fdp
Version: 2.21.20080822.0445-1
System: *-Linux-RHEL 4.6
Severity: major
Problem: When I try to create an edge from a cluster all work fine but if the cluster are included into another cluster de output of the fdp are deformed.
Input:
This example works fine:

<CD>
digraph G{
 size="50,50";
 nodesep=.5;
 compound=true;
 bgcolor=grey;
 node [style=bold, fontsize=20];
 edge [arrowsize=2, labelfontsize=20, style=bold];

 subgraph "cluster_1"{
  fontsize=45;
  fontcolor=mediumblue;
  label="1";
  style=bold;
  color=mediumblue;
  "1.1";
  "1.2";
 }
 subgraph "cluster_G"{
  fontsize=45;
  fontcolor=mediumblue;
  label="G";
  style=bold;
  color=mediumblue;
  subgraph "cluster_2"{
   fontsize=45;
   fontcolor=mediumblue;
   label="2";
   style=bold;
   color=mediumblue;
   "2.1";
   "2.2";
  }
 }
 "cluster_G" -> "1.1";
 "cluster_G" -> "1.2";
}
</CD>

This example doesn┤t work correctly:

<CD>
digraph G{
 size="50,50";
 nodesep=.5;
 compound=true;
 bgcolor=grey;
 node [style=bold, fontsize=20];
 edge [arrowsize=2, labelfontsize=20, style=bold];

 subgraph "cluster_1"{
  fontsize=45;
  fontcolor=mediumblue;
  label="1";
  style=bold;
  color=mediumblue;
  "1.1";
  "1.2";
 }
 subgraph "cluster_G"{
  fontsize=45;
  fontcolor=mediumblue;
  label="G";
  style=bold;
  color=mediumblue;
  subgraph "cluster_2"{
   fontsize=45;
   fontcolor=mediumblue;
   label="2";
   style=bold;
   color=mediumblue;
   "2.1";
   "2.2";
  }
 }
 "cluster_2" -> "1.1";
 "cluster_2" -> "1.2";
}
</CD>

This are small graphs and the output is generated but when you have a lot of cluster with more edges the fdp command return the error:

fdp: constraint.c:255: mkNConstraintG: Assertion `delta <= 0xFFFF' failed.
Abortado
Input file: b1429.dot
Output file: b1429.txt
Comments: I upload a complex .dot file that have this problem and fdp don┬┤t generate the graph. If you comment the code of the edges fdp generate the graph normally.
Owner: erg
Status: Fixed (22 Aug 2008)