Module graphviz_rust::printer[][src]

Expand description

It allows to transform a graph into a string carrying dot info according to the notation.

Example:

    use dot_generator::*;
    use dot_structures::*;
    use graphviz_rust::printer::{PrinterContext,DotPrinter};
    fn subgraph_test() {
        let mut ctx = PrinterContext::default();
        let s = subgraph!("id"; node!("abc"), edge!(node_id!("a") => node_id!("b")));
        assert_eq!(s.print(&mut ctx), "subgraph id {\n    abc\n    a -- b \n}".to_string());
    }

Structs

Context allows to customize the output of the file.

Traits

The trait allowing to transform a graph into the dot file: