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

Report information
The Basics
Id:
5398
Status:
new
Priority:
Low/Low

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

BugTracker
Severity:
Important
Broken in:
1.07
Fixed in:
(no value)



Subject: dashes in vertex names corrupt dot files
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 runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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