pub trait DotPrinter {
// Required method
fn print(&self, ctx: &mut PrinterContext) -> String;
}
Expand description
The trait for serailizing a Graph into the graphviz
DOT language:
§Example:
use dot_generator::*;
use dot_structures::*;
use self::graphviz_rust::printer::PrinterContext;
use self::graphviz_rust::printer::DotPrinter;
let mut ctx =PrinterContext::default();
ctx.always_inline();
ctx.with_indent_step(4);
let graph = graph!(strict di id!("t"));
let string = graph.print(&mut ctx);