Crate xdot

source ·
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 — The layout feature allows to parse xdot attributes from graphviz_rust’s Graphs using draw_graph.

  • extension-module — The extension-module feature enables using the crate from Python.

  • pyo3 — The pyo3 module is for testing Python features.

Modules§

  • Drawing attributes for lines, shapes, and text.
  • Drawable shapes included in Shape.

Macros§

Structs§

Enums§

Statics§

  • Known node/edge attribute names holding xdot draw instructions that parse can handle.

Functions§

  • Extract ShapeDraw operations from a graph annotated with xdot draw attributes.
  • Run xdot layout algorithm on a Graph and extract all ShapeDraw operations.
  • 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.
  • Python module TODO