You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Simone Tripodi (Commented) (JIRA)" <ji...@apache.org> on 2011/12/20 09:35:30 UTC

[jira] [Commented] (SANDBOX-346) DotExporter only exports weights that extend Number

    [ https://issues.apache.org/jira/browse/SANDBOX-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13173032#comment-13173032 ] 

Simone Tripodi commented on SANDBOX-346:
----------------------------------------

having the Dot exporter conform to Dot specification is on top of requirements :)
your patch has been applied, thanks for contributing!
                
> 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
>              Labels: dot, dotexporter, double, graph, weight
>         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