Skip to main content

Crate graphviz_pure

Crate graphviz_pure 

Source
Expand description

High-level Graphviz orchestration engine (graphviz-pure).

Structs§

GlobalAttrs
Attributes declared before the graph body, as set by the command line flags -Gname=value, -Nname=value and -Ename=value.
Graph
Arena-backed Graph representation (Fixes GV-BUG-008 and GV-BUG-010).
LayoutOptions
Engine options set on the command line.

Enums§

GraphvizError
Unified error type for graphviz-pure replacing C Graphviz’s graphviz_exit() and agerr().
LayoutEngine
OutputFormat

Functions§

layout_graph
layout_graph_with_options
parse_dot
Parses a DOT graph specification into an arena-backed Graph.
parse_dot_all
Parses every graph in a DOT stream (digraph G {..} digraph H {..}), applying globals (-G/-N/-E command line attributes) as if declared at the top of each graph.
render_dot
End-to-end DOT rendering pipeline for any supported engine and output format. Renders the first graph in dot_source.
render_dot_all
Renders every graph in dot_source, applying globals (-G/-N/-E) before each graph body.
render_dot_all_partial
render_dot_all_with_options that renders the graphs read before a syntax error and returns that error alongside, as dot does.
render_dot_all_with_options
render_dot_all with engine options such as -n (keep input positions).
render_graph
render_graph_named
Renders graph; name is the requested format name (distinguishes plain-ext).
render_svg_all_partial
Lays out and renders every graph in dot_source as SVG, for raster output: each SVG comes with whether its graph sets dpi (or resolution), since Graphviz then scales the drawing to that resolution instead of drawing raster formats at 96 dpi. Like render_dot_all_partial, the graphs read before a syntax error are returned with it.

Type Aliases§

Result