A library for generating Graphviz DOT language files for visualizing graphs.
```rust use dotavious::{Dot, Edge, Graph, GraphBuilder, Node}; use std::io; use std::io::Read;
// can also start building a undirected graph via GraphBuilder::new_undirected
let graph = GraphBuilder::newdirected(Some("example".tostring()))
.addnode(Node::new("N0".tostring()))
.addnode(Node::new("N1".tostring()))
.addedge(Edge::new("N0".tostring(), "N1".to_string()))
.build()
.unwrap();
let dot = Dot { graph };
println!("{}", dot);
which produces
digraph example {
N0;
N1;
N0 -> N1;
}
```
and when rendered will look like