Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000913graphvizDotpublic2005-06-23 07:332011-04-28 04:03
ReporterJohan Cockx 
Assigned Toerg 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Linux-OS Version
Summary0000913: Dot confuses rank=sink with rank=same
Description



When I try to place two nodes at the end of the graph using rank=sink,
the nodes are placed at the same rank, but not at the end of the graph.
Using rank=sink for just a single node has no effect at all, which would
be normal behavior for rank=same. It seems that dot confuses rank=sink
with rank=same. The same problem occurs for rank=maxrank, and probably
(I did not check) also for rank=minrank and rank=source.



Command used: dot -Tps cfg.dot -o cfg.ps
Steps To Reproduce

digraph "main`1" {
  graph [label="main`1"];
  node [shape=box,height=0.2];
  { rank = source; 148250296 [label="<entry>;",shape=invhouse,style=bold]; }
  148039336 [label="^i;"];
  148039392 [label="i = 0;"];
  148039696 [label="if (i < 3) ...",shape=diamond];
  148264480 [label="(*i_out`1).put(i);"];
  148042176 [label="if (i == 0) ...",shape=diamond];
  148043232 [label="#i;"];
  148043304 [label="print(x);"];
  148044064 [label="return_value`1 = 0;"];
  148042280 [label="tmp = 0;"];
  148042480 [label="print(tmp);"];
  148043168 [label="i = i + 1;"];
  148262024 [label="x = (*x_in`1).get();"];
  148042344 [label="tmp = x;"];
  subgraph { rank = sink; dummy; 148250352 [label="return",shape=invhouse,style=bold]; }
  148250296 -> 148039336;
  148039336 -> 148039392;
  148039392 -> 148039696;
  148264480 -> 148042176;
  148042280 -> 148042480;
  148042480 -> 148043168;
  148043168 -> 148262024;
  148262024 -> 148039696;
  148042176 -> 148042344 [label=f];
  148042344 -> 148042480;
  148039696 -> 148043232 [label=f];
  148043232 -> 148043304;
  148043304 -> 148044064;
  148044064 -> 148250352;
  148039696 -> 148264480 [label=t];
  148042176 -> 148042280 [label=t];
}
Additional Information

[erg} Here is a simpler example:
<CD>
digraph G {
  {rank=sink; d }
  b -> d
  b -> D -> F
  F -> b
}
</CD>
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID732
INPUT-FILE
OUTPUT-FILEhttp://www.graphviz.org/bugs/b732.ps [^]
STATUS-COMMENTFixed (24 June 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