petgraph icon indicating copy to clipboard operation
petgraph copied to clipboard

Add an option to format Dot graphs with Graph attributes

Open s1gtrap opened this issue 1 year ago • 0 comments

I needed a dot graph with a transparent background, and you can add attributes for nodes/vertices with Dot::with_attr_getters, so I was surprised to learn graph attributes weren't supported. Obviously there's only a single graph being formatted at a time, so adding a getter is a bit overkill. I made a petgraph::dot::Config variant with a key/value String do, and figured it might as well be submitted upstream.

s1gtrap avatar Aug 14 '24 16:08 s1gtrap