Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000245graphvizGrappapublic2003-07-03 20:142011-04-28 04:02
ReporterJeremy Y. Meng 
Assigned Toellson 
PlatformOSx86-Linux-RedHat 7.1OS Version
Summary0000245: grappa can not parse dot files containing "ranksep"?
Description is the first digraph from AT&T directed graphs. (got from
$java Demo

Exception: value of attribute "ranksep" is not an instance of String
java.lang.IllegalArgumentException: value of attribute "ranksep" is not an instance of String
    at att.grappa.Attribute.copyValue(
    at att.grappa.Attribute.setValue(
    at att.grappa.Attribute.<init>(
    at att.grappa.Subgraph.setNodeAttribute(
    at att.grappa.Subgraph.setNodeAttribute(
    at att.grappa.CUP$Parser$actions.attrStmt(
    at att.grappa.CUP$Parser$actions.CUP$Parser$do_action(
    at att.grappa.Parser.do_action(
    at java_cup.runtime.lr_parser.parse(
    at Demo12.doDemo(
    at Demo12.main(
Additional Information

[john] The problem is that the user used ranksep as a node
attribute instead of as a
graph attribute. This mistake uncovered a bug in Grappa where it converted the
value to a double since that is how a subgraph would use it, but then assumes
the value should be a string because it is being used with a node and therefore
no longer a special attribute as far as Grappa is concerned. I corrected and pushed out an update. The user has another mistake in the
file where they set shape to "1.25", but that Grappa prints a reasonable
exception message in that case.

TagsNo tags attached.
STATUS-COMMENTFixed (7 July 2003)
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