Expand description
Parse and draw xdot
shapes.
§Example
use xdot::parse;
let shapes = parse("c 7 -#ff0000 p 4 4 4 36 4 36 36 4 36");
§Feature flags
-
layout
— Thelayout
feature allows to parsexdot
attributes from graphviz_rust’s Graphs using draw_graph. -
extension-module
— Theextension-module
feature enables using the crate from Python. -
pyo3
— Thepyo3
module is for testing Python features.
Modules§
Macros§
Structs§
Enums§
- Layout
Error layout
- Error wrapping possible errors that can occur when running draw_graph.
Statics§
- ATTR_
NAMES - Known node/edge attribute names holding
xdot
draw instructions that parse can handle.
Functions§
- draw_
graph layout
- Extract ShapeDraw operations from a graph annotated with
xdot
draw attributes. - layout_
and_ draw_ graph layout
- Run
xdot
layout algorithm on a Graph and extract all ShapeDraw operations. - parse
- Parse an
xdot
draw attribute (as defined here). Returns a vector of stateless drawing operations defining shape and style of the drawn node, edge, or label. - pymodule
pyo3
- Python module TODO