Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001553graphvizDotpublic2009-03-08 03:392011-04-28 04:03
ReporterJeremy Fleischman 
Assigned Togviz 
PlatformOSx86-Windows-XPOS Version
Summary0001553: Error: trouble in init_rank

dot -Tpdf -o database3.pdf
Additional Information
I can't seem to generate this graph, and I would really like to see it!

[ellson] I suggest you start with a small fragment of that graph, and experiment with it to get the graph syntax correct.
In particular, the label syntax is incorrect.

Trying to force rank with rank=same means you are fighting with dot's own calculation of what the ranks should be.
Try without rank=same.

I was able to produce the attached PDF b1594.pdf
from a modified \<A HREF=""\>version\</A\>
of your graph using graphviz-2.22.
The graph is very large, so probably no point in even attempting any bitmap layouts.

No, I'm wrong, your labels are fine. This [rank=same] is the problem.
New \<A HREF="b1594a.pdf"\>output\</A\> attached with labels
\<A HREF=""\>restored\</A\>.

BTW. If you take into account rotational and mirror symmetries, the rules for winning at tic-tac-toe are much simpler than this ;-)

[jeremy] Wow!
Thank you for the quick response! This happens to be 3x3 Connect 3, a simpler version of the much larger game that most people know, 7x6 Connect 4.

I'm sorry I didn't specify this in my bug report, but I already knew that I could generate the pdf if I left the rank=same stuff out. The thing is that is is more interesting to look at the 3x3 Connect 3 graph in terms of remoteness, that is, the number of moves until the game is over. That way, all of the winning/losing nodes should end at the bottom of the graph. However, right now the nodes are simply ranked by the number of pieces on the board, which is a less interesting representation. All I want to do is align the nodes to a certain row. Is there some way of controlling the layout of the nodes like that? While I know that using rank=same is breaking my graph, I don't know why. I believe that I am using that property correctly.

[ellson] I'm not convinced yet that this is a bug. If you put too many constraints on a graph, then dot has to eventually give up.

I tried using rank=same on just rows "0" and "9", then I found that dot wants to create additional rows below "0".

Aren't the solid nodes terminals? Why do they have outedges?

(e.g. h128 -> h288 )

Is it possible that you have some edges reversed?

TagsNo tags attached.
AUXILLARY-FILES [^] [^] [^] [^]
VERSION     2.20.3
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 => user1

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