DotExporter only exports weights that extend Number
---------------------------------------------------
Key: SANDBOX-346
URL: https://issues.apache.org/jira/browse/SANDBOX-346
Project: Commons Sandbox
Issue Type: Improvement
Components: Graph
Reporter: Claudio Squarcella
Priority: Minor
Attachments: DotExporterOnlyExportsWeightsExtendingNumber.patch
Hi,
I propose a tiny patch for the DotExporter in order to print "weight" as an
edge attribute only when the actual weight extends Number, using the method
getDouble().
This is to be fully compliant with the DOT language specification on the
attribute "weight" (see http://www.graphviz.org/content/attrs#aweight).
Hope this helps,
Claudio
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira