DiagrammeR
DiagrammeR copied to clipboard
Include 'weight' and 'constraint' as GraphViz attribute
The weight
attribute is currently not forwarded to the generated DOT code:
https://www.graphviz.org/doc/info/attrs.html#d:weight
Would it be enough to simply add weight
here:
https://github.com/rich-iannone/DiagrammeR/blob/89b87f585bc8b6c1fb3ee2136df868520c7f2467/R/utils.R#L633
Similarly the constraint
attribute is not supported. Why the limitation on a pre-selected list of attributes? Wouldn't it be possible to simply add all unknown attributes anyway?