The main function of this package is parse
.
It parses node/edge attributes on graphviz graphs created by xdot
into drawable shapes.
rust
use xdot::{parse, ShapeDraw};
let shapes: Vec<ShapeDraw> = parse("c 7 -#ff0000 p 4 4 4 36 4 36 36 4 36");
Each ShapeDraw
struct contains a shape
with geometry and a pen
with drawing attributes (such as color, line style, and font).
If you have the layout
feature active, you can also use layout_and_draw_graph
(and draw_graph
):
```rust use graphvizrust::parse; use graphvizrust::dotstructures::Graph; use xdot::{layoutanddrawgraph, ShapeDraw};
let graph: Graph = parse("graph { a -- b}").unwrap();
let shapes: Vec
main
causes creation or update of a release PR. (release
workflow)release
workflow)publish
workflow)