Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000208graphvizDotpublic2003-05-09 06:032011-04-28 04:02
ReporterJon Edvardsson 
Assigned Toellson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-OS Version
Summary0000208: Multiple graphs in dot file ignored in PS output
Description



The problem occurs when the dot file contains several graphs, for example:



<CD>
digraph G {
    a -> b;
    a -> c;
}






digraph H {
    a -> b -> c;
}
</CD>



In Graphviz 1.8.9 it was possible to generate a PS-file where each graph
was layed out on a seperate page by giving the command:



% dot-1.8.9 -Tps test.dot > test-1.8.9-1.ps



In Graphviz 1.9, however, this does not seem to work. The generated
PS file seem to contain both graphs but a PS viewer such as GV only
displays one of them (the first one I think).



If the -o flag is used in 1.8.9 the result is the same as when
redirection is used. That is,
<CD>
% dot-1.8.9 -Tps test.dot > test-1.8.9-1.ps
% dot-1.8.9 -Tps test.dot -otest-1.8.9-2.ps
% ls -la test-1.8.9-1.ps test-1.8.9-2.ps
-rw-r--r-- 1 joned ida 6948 maj 9 11:53 test-1.8.9-1.ps
-rw-r--r-- 1 joned ida 6948 maj 9 11:53 test-1.8.9-2.ps
sen16% diff test-1.8.9-2.ps test-1.8.9-1.ps
</CD>



However if the -o flag is used in Graphviz 1.9.0 the file PS file only
seem to contain the last graph.



<CD>
% dot-1.9.0 -Tps test.dot > test-1.9.0-1.ps
% dot-1.9.0 -Tps test.dot -otest-1.9.0-2.ps
% ls -la test-1.9.0-1.ps test-1.9.0-2.ps
-rw-r--r-- 1 joned ida 11695 maj 9 11:52 test-1.9.0-1.ps
-rw-r--r-- 1 joned ida 5831 maj 9 11:52 test-1.9.0-2.ps
%
</CD>



The file sizes also differ much between 1.8.9 and 1.9.0.



The grammar of the dot language does not state if it is possible to
have multiple graphs in a single file, but the 1.8.9 tool seem to
handle it (at least for PS output).



The above has been run on Solaris 2.7. I've noted that the Windows
version of dot (1.9.0) have similar problems.
Steps To Reproduce

digraph G {
    a -> b;
    a -> c;
}


digraph H {
    a -> b -> c;
}
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID288
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed
VERSION     1.9.0
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

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


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