Skip Menu |
 

This queue is for tickets about the Graph-ReadWrite CPAN distribution.

Report information
The Basics
Id: 5398
Status: new
Priority: 0/
Queue: Graph-ReadWrite

People
Owner: Nobody in particular
Requestors: gjb [...] luc.ac.be
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.07
Fixed in: (no value)



Subject: dashes in vertex names corrupt dot files
Download (untitled) / with headers
text/plain 908b
Distribution: Graph-ReadWrite-1.07 Perl version: perl, v5.8.2 built for cygwin-thread-multi-64int Operating system version: CYGWIN_NT-5.1 chaos 1.5.7(0.109/3/2) 2004-01-30, Windows XP Pro SP1 When a graph has vertices with names that contain '-' characters, the .dot file that results from $writer->write_graph($graph, $fh) contains syntax errors (from dot's perspective): $ dot -Tgif test.dot >test.gif Error: test.dot:8: parse error near line 8 context: >>> data- <<< category; The dot file contains the lines: digraph g { /* list of nodes */ ... data-category; ... } The problem may be solved by generating dot node names and displaying the vertex name through the label attribute. Hence the generated file would look like: digraph g { /* list of nodes */ ... node4[label="data-category"]; ... } If you like I can try and provide a patch. Best regards, Geert Jan Bex


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.