DiagrammeR icon indicating copy to clipboard operation
DiagrammeR copied to clipboard

Include 'weight' and 'constraint' as GraphViz attribute

Open fmannhardt opened this issue 5 years ago • 0 comments

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?

fmannhardt avatar Oct 18 '19 07:10 fmannhardt