Open Hypergraphs Dot
A Rust library for visualizing lax open hypergraphs using the GraphViz DOT format.
Get Started
Add the crate with the svg feature for simplest use:
cargo add open-hypergraphs-dot --feature svg
Then you can save an Open Hypergraph to an SVG in one line:
use ;
write;
If you want non-standard options, you can use the fluent options interface:
// use defaults in Left-to-right orientation, using Display instance for nodes and edges
let opts = default.display.lr;
write;
Examples
Run the adder example:
cargo run --example adder
This will produce the following depiction of an open hypergraph representing a 2-bit ripple-carry adder:

See ./examples/adder.rs for the source code producing this example.