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— Thelayoutfeature allows to parsexdotattributes from graphviz_rust’s Graphs using draw_graph.extension-module— Theextension-modulefeature enables using the crate from Python.pyo3— Thepyo3module 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
xdotdraw instructions that parse can handle.
Functions§
- draw_
graph layout - Extract ShapeDraw operations from a graph annotated with
xdotdraw attributes. - layout_
and_ draw_ graph layout - Run
xdotlayout algorithm on a Graph and extract all ShapeDraw operations. - parse
- Parse an
xdotdraw attribute (as defined here). Returns a vector of stateless drawing operations defining shape and style of the drawn node, edge, or label. - pymodule
- Python module TODO